mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-29 22:39:33 +00:00
image_builder: fix bug w scope of variable
This commit is contained in:
@@ -117,10 +117,10 @@ umount_system() {
|
||||
# Repeat 5 times
|
||||
for i in {1..5}; do
|
||||
umount -fR $1 \
|
||||
&& (echo_stamp "OK" "SUCCESS"; umount_ok=true; break) \
|
||||
&& umount_ok=true && break \
|
||||
|| (echo_stamp "Failed #$i (try 5 times)" "ERROR"; sleep 2)
|
||||
done
|
||||
[[ "$umount_ok" == true ]] \
|
||||
[[ "$umount_ok" == true ]] && echo_stamp "OK" "SUCCESS" \
|
||||
|| (echo_stamp "Umount loop-image was failed" "ERROR"; exit 1)
|
||||
losetup -d $2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user