From 05b28ad7b3f0bb4f3f1b4e448a0465d17790944b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 15 Nov 2011 16:19:43 +0100 Subject: easy_e17.sh: use readlink to get rid of trailing '/' within path --- easy_e17.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/easy_e17.sh b/easy_e17.sh index adab900..2a8b4c3 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -1221,9 +1221,7 @@ if [ "$asuser" ] && [ $nice_level -lt 0 ]; then nice_level=0 fi # Fix issues with a slash at the end -if [ ! "${src_path:$((${#src_path}-1)):1}" == "/" ]; then - src_path="$src_path/" -fi +src_path=$(readlink -f $src_path) # quit if some basic option is missing if [ -z "$action" ] || [ -z "$install_path" ] || [ -z "$src_path" ]; then wrong -- cgit v1.1-2-g2b99