Created
March 4, 2015 16:04
-
-
Save nefftd/66f6b93d53cc00bb53ba 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
d) | |
OUT="$(tmux detach 2>&1)" | |
if [[ "$OUT" =~ ^(failed to connect to server) ]]; then | |
echo "tm: tmux server not active" 1>&2; | |
ERRCODE = 1 | |
elif [[ $? != 0 ]]; then | |
[[ -z "$OUT" ]] && echo $OUT 1>&2; | |
ERRCODE = 1 | |
fi | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment