Remove [] to enable sh compatibility (#2334)
This commit is contained in:
parent
f42b9ff551
commit
e61ca973b6
@ -141,7 +141,7 @@ index 6c3b038e..f4166fbe 100755
|
||||
+
|
||||
+for file in /dev/* ; do
|
||||
+ CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file))
|
||||
+ if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then
|
||||
+ if [ "\$CURRENT_DEVICE" = "\$boot_device" ]; then
|
||||
+ boot_partition=\$file
|
||||
+ break;
|
||||
+ fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user