Skip to content

Instantly share code, notes, and snippets.

@fortable1999
Created October 22, 2018 11:32
Show Gist options
  • Save fortable1999/3c68f762e520691ad153170ce7354429 to your computer and use it in GitHub Desktop.
Save fortable1999/3c68f762e520691ad153170ce7354429 to your computer and use it in GitHub Desktop.
democode
UMOUNT_RETRIES=3
while [ $UMOUNT_RETRIES -gt 0 ]
do
umount ${DIR_NAME}; RC=$?
if [ ${RC} -ne 0 ]
then
UMOUNT_RETRIES=$((UMOUNT_RETRIES-1))
continue
fi
break
done
if [ $UMOUNT_RETRIES -le 0 ]
then
####
## PART A
####
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment