Created
July 11, 2017 18:10
-
-
Save goneri/a2b5adb2c0c1efcd25fc75b820959820 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
#!/bin/bash | |
# I use to work on different tasks and I like to know quickly if something is finished. | |
# With this script, I can shoot a long command (e.g: an OpenStack deployment) and focus | |
# on something else. | |
$* | |
if [ $? -eq 0 ]; then | |
status="SUCCESS" | |
icon=dialog-information | |
else | |
status="FAILURE" | |
icon=dialog-warning | |
fi | |
notify-send "$status: $*" --icon=${icon} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment