Created
October 22, 2018 01:54
-
-
Save kyle-seongwoo-jun/e7fbc90f65d53a162bd330f09688345e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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