]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95fstab-sys/mount-sys.sh: removed bashism
authorHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 14:00:02 +0000 (16:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 14:03:00 +0000 (16:03 +0200)
modules.d/95fstab-sys/mount-sys.sh

index 0f660b72ba09231feb14f6c219ef468993faf347..8c9cb29fb7b35b76f40ca76bfe14b04d1dd60b55 100755 (executable)
@@ -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