summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 502d1d9..8ad214a 100644
--- a/functions
+++ b/functions
@@ -124,7 +124,7 @@ add_file ()
dest="${2}"
else
dest="${fil##$BASEDIR}"
- if [ "${dest:0:1}" != "/" ]; then
+ if [ "${dest}" = "${dest#/}" ]; then
dest="/${dest}"
fi
fi