Skip to content

Instantly share code, notes, and snippets.

@Leask
Created October 8, 2015 08:48
Show Gist options
  • Save Leask/1c47342ff5d4d2ff8700 to your computer and use it in GitHub Desktop.
Save Leask/1c47342ff5d4d2ff8700 to your computer and use it in GitHub Desktop.
Handle "confdir-14B---/confdir-14B---" looping problem.
while true
do
mv confdir-14B---/confdir-14B--- a
if [[ $? -ne 0 ]]
then
break
fi
rm -rf confdir-14B---
mv a confdir-14B---
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment