Browse Source

] works for foo='bar' bar='b*r' but, apparently, not everything

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 năm trước cách đây
mục cha
commit
ce06162a47
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/install.sh

+ 1 - 1
scripts/install.sh

@@ -174,7 +174,7 @@ case $ostype {
 }
 
 mount | while read dev rest; do
-	[[ $dev = $match ]] || continue
+	eval [[ \$dev = $match ]] || continue
 	print -u2 "Block device $tgt is in use, please umount first."
 	exit 1
 done