Last active
February 16, 2022 10:54
-
-
Save GitaiQAQ/9a223a42bc2a240d5bd46332c71e4295 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
#!/usr/bin/env bash | |
# only-dev && only execute in dev env and throw an error in other | |
# only-dev || only execute in non-dev env and do nothing in other | |
if [[ $NODE_ENV =~ ^dev ]] | |
then | |
exit 0 | |
fi | |
exit -1 |
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
#!/usr/bin/env bash | |
# only-prod && only execute in prod env and throw an error in other | |
# only-prod || only execute in non-prod env and do nothing in other | |
if [[ $NODE_ENV =~ ^prod ]] | |
then | |
exit 0 | |
fi | |
exit -1 |
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
#!/usr/bin/env bash | |
# TODO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment