Remove [] to enable sh compatibility (#2334)

This commit is contained in:
Igor Pečovnik 2020-11-12 15:56:52 +01:00 committed by GitHub
parent f42b9ff551
commit e61ca973b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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