Skip to content

Instantly share code, notes, and snippets.

@maurobaraldi
Created November 8, 2018 19:32
Show Gist options
  • Save maurobaraldi/ed3e9da715c1ee6d29ec180948797d83 to your computer and use it in GitHub Desktop.
Save maurobaraldi/ed3e9da715c1ee6d29ec180948797d83 to your computer and use it in GitHub Desktop.
Simple function in shell script
show() {
if [ "$1" = "Sandbox" ]; then
echo "pip install -r /path/to/sandbox.txt"
elif [ "$1" = "Staging" ]; then
echo "pip install -r /path/to/staging.txt"
else
echo "pip install -r /path/to/local.txt"
fi;
}
show Sandbox
show Staging
show Lalalala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment