Last active
January 7, 2022 19:34
-
-
Save prayagupa/ec0a468ad58b045b9b3d to your computer and use it in GitHub Desktop.
bash, bash case, scripting
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
| case "$2" in | |
| development) | |
| case "$1" in | |
| clean) | |
| clean | |
| ;; | |
| runApp) | |
| runApp | |
| ;; | |
| test) | |
| test | |
| ;; | |
| *) | |
| echo "Usage: $0 {clean|runApp|test}" | |
| exit 1 | |
| ;; | |
| esac | |
| ;; | |
| *) | |
| echo "Usage $0 {clean|runApp|test} {dev}" | |
| exit 2 | |
| ;; | |
| esac | |
| ## usage nepleaks.sh runApp development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment