#!/bin/bash export APP="wesearch" if [ $# -eq 0 ] then echo "No arguments supplied. Using wesearch" else export APP="$1" fi echo $APP mvn install curl "http://@sh.titan.uio.no:8080/manager/text/undeploy?path=/$APP" curl -T "target/common-gui-1.0-SNAPSHOT.war" "http://@sh.titan.uio.no:8080/manager/text/deploy?path=/$APP&update=true"