Skip to content

Instantly share code, notes, and snippets.

@prayagupa
Last active January 7, 2022 19:34
Show Gist options
  • Select an option

  • Save prayagupa/ec0a468ad58b045b9b3d to your computer and use it in GitHub Desktop.

Select an option

Save prayagupa/ec0a468ad58b045b9b3d to your computer and use it in GitHub Desktop.
bash, bash case, scripting
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