Created
November 25, 2019 10:30
-
-
Save kphrx/152181bd4029b5964799bbe8e4553888 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/sh | |
echo -n "Default yes [Y/n]: " | |
read y | |
if [[ "${y:0:1}" == [nN] ]]; then | |
echo "Answer no." | |
exit 1 | |
fi | |
echo -n "Default no [y/N]: " | |
read n | |
if [[ "${n:0:1}" == [yY] ]]; then | |
echo "Answer yes." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment