Last active
July 10, 2017 16:52
-
-
Save pkillnine/937de29d3adb41cb1c1ab91af523349d to your computer and use it in GitHub Desktop.
This file contains 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 | |
eval "$@" | |
if [ -f $QUTE_FIFO ]; then | |
if [[ $? == 0 ]] ; then | |
echo "message-info 'Command exited with status $?'" >> $QUTE_FIFO | |
else | |
echo "message-error 'Command exited with status $?'" >> $QUTE_FIFO | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment