Created
July 5, 2017 06:08
-
-
Save d4rky-pl/dd48e1dde583d4d76fad8f54febe2809 to your computer and use it in GitHub Desktop.
Simple Bash script to translate bitbar-webpack-status-plugin result to human language
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
#!/bin/bash | |
if [[ -f /tmp/webpack-status ]]; then | |
STATUS=$(cat /tmp/webpack-status) | |
if [[ $STATUS -eq "-1" ]]; then | |
echo "Build failed!" | |
elif [[ $STATUS -eq "1" ]]; then | |
echo "Build success." | |
else | |
echo "Build in progress..." | |
fi | |
else | |
echo "Webpack is not running..." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment