Skip to content

Instantly share code, notes, and snippets.

@pkillnine
Last active July 10, 2017 16:52
Show Gist options
  • Save pkillnine/937de29d3adb41cb1c1ab91af523349d to your computer and use it in GitHub Desktop.
Save pkillnine/937de29d3adb41cb1c1ab91af523349d to your computer and use it in GitHub Desktop.
#!/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