diff --git a/install.sh b/install.sh index 3da21a5e79ea52992257270553863c480290b705..5400ed2c5c4afbd05993ea806f90faddaa171851 100755 --- a/install.sh +++ b/install.sh @@ -26,12 +26,13 @@ while [ "$everything_ok" != "y" ]; do echo echo "LODSPeaKr needs to know three (3) URIs to minimally configure itself:" echo - echo "(1/3) At what URL will `pwd` be available? Include a file '/' (e.g. http://localhost/`basename $back_one`/`basename \`pwd\``/)" + echo "(1/3) At what URL will `pwd` be available? (e.g. http://localhost/`basename $back_one`/`basename \`pwd\``/)" echo -n "(default '$basedir'): " read -u 1 aux_basedir echo - if [ "$aux_basedir" != "" ]; then - basedir=$aux_basedir + aux_basedir="`echo $aux_basedir | sed 's/\/$//'`/" # remove any ending slash and append one. + if [ "$aux_basedir" != "/" ]; then + basedir=$aux_basedir fi