Explorar o código

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

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser %!s(int64=15) %!d(string=hai) anos
pai
achega
ce06162a47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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