summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions b/functions
index 3db6e02..beb4a3e 100644
--- a/functions
+++ b/functions
@@ -95,6 +95,9 @@ add_file ()
dest="${2}"
else
dest="${fil##$BASEDIR}"
+ if [ "${dest:0:1}" != "/" ]; then
+ dest="/${dest}"
+ fi
fi
add_dir $(dirname "${dest}")