Skip to content

Instantly share code, notes, and snippets.

@d4rky-pl
Created July 5, 2017 06:08
Show Gist options
  • Save d4rky-pl/dd48e1dde583d4d76fad8f54febe2809 to your computer and use it in GitHub Desktop.
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
#!/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