Skip to content

Instantly share code, notes, and snippets.

@mob-sakai
Last active October 28, 2020 14:01
Show Gist options
  • Save mob-sakai/a486cba9c28573b8c34756624a1fefb8 to your computer and use it in GitHub Desktop.
Save mob-sakai/a486cba9c28573b8c34756624a1fefb8 to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
while getopts "e" OPT
do
case $OPT in
e) EDITOR_ONLY="true";;
\?) echo "[ERROR] Undefined options.";;
esac
done
if [ "$EDITOR_ONLY" = "true" ]; then
echo "EDITOR_ONLY!"
fi
echo -e ">> Start $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment