summaryrefslogtreecommitdiffstats
path: root/mkinitfs.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-11-03 13:02:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-03 13:02:12 +0000
commit98fb74fadf3dc91a22b6aa11b4351e1a8ea3ef18 (patch)
tree7c5a2c98530347facbc31c2c838e27693b0f0a56 /mkinitfs.in
parent1841493fcabde82300098c883bb043c81c496711 (diff)
downloadmkinitfs-98fb74fadf3dc91a22b6aa11b4351e1a8ea3ef18.tar.bz2
mkinitfs-98fb74fadf3dc91a22b6aa11b4351e1a8ea3ef18.tar.xz
mkinitfs: fix for running without -b option
Diffstat (limited to 'mkinitfs.in')
-rwxr-xr-xmkinitfs.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkinitfs.in b/mkinitfs.in
index 8246d07..67981c4 100755
--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -16,7 +16,7 @@ _cp() {
local i
if [ -n "$list_sources" ]; then
for i in "$@"; do
- echo "$basedir"/$i
+ echo "$basedir"/"$i"
done
return
fi
@@ -55,7 +55,7 @@ initfs_base() {
done
[ -z "$list_sources" ] && mkdir -p $dirs
- cd "$basedir"
+ cd "${basedir:-/}"
for file in $(feature_files "$filelists_dir"); do
_cp $file
done