| | |
korn script issue
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Counting script issue (PHP)
- Problem in Korn shell script (Shell Scripting)
- Shell Script Issue (Shell Scripting)
- simple cgi script issue (Python)
- PHP image swapping ? (PHP)
- Form not sending email (PHP)
Other Threads in the Shell Scripting Forum
- Previous Thread: Help with grep?
- Next Thread: Calling multiple scripts
Views: 647 | Replies: 0
| Thread Tools | Search this Thread |






