95fstab-sys/mount-sys.sh: removed bashism

master
Harald Hoyer 2012-03-27 16:00:02 +02:00
parent 26433e9c1f
commit 0441230c51
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ fstab_mount() {
fi
_fs=$(det_fs "$_dev" "$_fs")
info "Mounting $_dev"
if [[ -d $NEWROOT/$_mp ]]; then
mount -v -t $_fs -o $_opts $_dev $NEWROOT/$_mp 2>&1 | vinfo
if [ -d "$NEWROOT/$_mp" ]; then
mount -v -t $_fs -o $_opts $_dev "$NEWROOT/$_mp" 2>&1 | vinfo
else
mkdir -p "$_mp"
mount -v -t $_fs -o $_opts $_dev $_mp 2>&1 | vinfo