mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
Update wait_max arithmetic
* Update wait_max arithmetic: * "$" isn't required in an arithmetic function
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ if [[ -d "$gbgmp" ]]; then
|
|||||||
printf "Unmount %s .." "$gbgmp" >&2;
|
printf "Unmount %s .." "$gbgmp" >&2;
|
||||||
while $wait; do
|
while $wait; do
|
||||||
if grep -qs "$gbgmp" /proc/mounts; then
|
if grep -qs "$gbgmp" /proc/mounts; then
|
||||||
wait_max=$((1+$wait_max))
|
wait_max=$((1+wait_max))
|
||||||
if umount "$gbgmp" >/dev/null 2>&1; then
|
if umount "$gbgmp" >/dev/null 2>&1; then
|
||||||
wait=false # umount successful
|
wait=false # umount successful
|
||||||
printf " Success\n" >&2;
|
printf " Success\n" >&2;
|
||||||
|
|||||||
Reference in New Issue
Block a user