korn script issue

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2009
Posts: 1
Reputation: asulli01 is an unknown quantity at this point 
Solved Threads: 0
asulli01 asulli01 is offline Offline
Newbie Poster

korn script issue

 
0
  #1
Nov 11th, 2009
Hi All,

Im writing a ksh script that prompts the user for a path, then I want to use that path to deploy software to. There will only ever be 2 paths the user will select. My problem is that the script takes the path but doesn't substitute it into my deploy command. This is my script...

echo "\nEnter repository to depoly to (eg. http://localhost:8081/nexus/content/...ories/JILMaven or http:
//localhost:8081/nexus/content/repositories/JILReleases \c"

read REPOSITORY
echo "REPOSITORY is: $REPOSITORY"
if [ "$REPOSITORY" = "" ]; then
echo "No REPOSITORY specified, please try again"
exit 1
fi

mvn deploy:deploy-file -DgroupId=antlr -DartifactId=antlr -Dversion=2.5.7 -Dpackaging=jar -Dfile=/view/a442592_2.6_m
ain/vobs_opensrc/exports/lib/antlr.jar -Durl=$REPOSITORY -DrepositoryId=JILReleases

I want the -Durl=$REPOSITORY to pick up the path the user selected.

Can anybody see what I am doing wrong here?

Thanks
Reply With Quote Quick reply to this message  
Reply

Tags
scripting

Message:



Similar Threads
Other Threads in the Shell Scripting Forum


Views: 647 | Replies: 0
Thread Tools Search this Thread



Tag cloud for scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC