summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-08-03 14:00:38 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-05 19:29:08 +0200
commitb8800749b5e301bdf76c8aa1509ea5653d9e7c51 (patch)
treed8ac8c845af9af1c351497573a2967a50d5e1a57 /functions
parent5258594df2859565a0d2c72a33663162b1cd68b1 (diff)
downloadmkinitcpio-b8800749b5e301bdf76c8aa1509ea5653d9e7c51.tar.gz
mkinitcpio-b8800749b5e301bdf76c8aa1509ea5653d9e7c51.tar.xz
Eliminate bashisms so things work in dash.
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
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