]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95nbd/nbdroot.sh: removed bashism
authorHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 13:59:35 +0000 (15:59 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 13:59:35 +0000 (15:59 +0200)
modules.d/95nbd/nbdroot.sh

index 0e7dd9bd670bf98f80d6bd66259c58752be35b9d..765612046866d2d8a432c1a6c55c5a4d2d0f9e99 100755 (executable)
@@ -31,7 +31,7 @@ nbdflags=${root%%:*}
 nbdopts=${root#*:}
 
 # If nbdport not an integer, then assume name based import
-if [[ $nbdport != [0-9]* ]]; then
+if [ "${nbdport%[0-9]}" = "$nbdport" ]; then
     nbdport="-N $nbdport"
 fi