From 094465b58609cc7197df0939ac7173ece9664cdf Mon Sep 17 00:00:00 2001 From: Timothy Lebo <timrdf@gmail.com> Date: Sat, 14 Jan 2012 22:40:37 -0500 Subject: [PATCH] reworded #1; added automated / handing --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 3da21a5e..5400ed2c 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 -- GitLab