summaryrefslogtreecommitdiffstats
path: root/easy_e17.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-11-15 16:19:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-11-15 16:19:43 +0100
commit05b28ad7b3f0bb4f3f1b4e448a0465d17790944b (patch)
tree952c2f3fecc96292d31f7d20e913ac0c48c00626 /easy_e17.sh
parent4554ce218bbf81cc8d4db19e270819d589ccfb31 (diff)
downloadbin-05b28ad7b3f0bb4f3f1b4e448a0465d17790944b.zip
bin-05b28ad7b3f0bb4f3f1b4e448a0465d17790944b.tar.gz
easy_e17.sh: use readlink to get rid of trailing '/' within path
Diffstat (limited to 'easy_e17.sh')
-rwxr-xr-xeasy_e17.sh4
1 files changed, 1 insertions, 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