Skip to content

Commit

Permalink
fix shellcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed Nov 27, 2024
1 parent 06507ab commit 9ca14b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/studio/bin/hab-studio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1069,11 +1069,14 @@ umount_fs() {
# explored.
RETRY_DELAY=5
MAX_RETRIES=5
for ((i = 1; i <= MAX_RETRIES; i++)); do
i=1
while [ "$i" -le "$MAX_RETRIES" ]
do
sleep $((RETRY_DELAY * i)) # Delay increases with each retry
if ! is_fs_mounted "$_mount_point"; then
return 0
fi
i=$((i+1))
done
# Despite a successful umount, filesystem is still mounted
>&2 echo "After unmounting filesystem '$_mount_point', the mount \
Expand Down

0 comments on commit 9ca14b6

Please sign in to comment.