Skip to content

Instantly share code, notes, and snippets.

@kyle-seongwoo-jun
Created October 22, 2018 01:54
Show Gist options
  • Save kyle-seongwoo-jun/e7fbc90f65d53a162bd330f09688345e to your computer and use it in GitHub Desktop.
Save kyle-seongwoo-jun/e7fbc90f65d53a162bd330f09688345e to your computer and use it in GitHub Desktop.
#!/bin/bash
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-c|--clean)
CLEAN=1
;;
-r|--restore)
RESTORE=1
;;
esac
shift
done
if [ $CLEAN ]; then
echo clean
fi
if [ $RESTORE ]; then
echo restore
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment