asulli01 0 Newbie Poster

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/repositories/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