Make errors more verbose
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7374309c37
commit
a9570cde04
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
[ -n "${TMUX}" ] && exit 1
|
function fail {
|
||||||
|
echo "Error: $@"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -n "${TMUX}" ] && fail "You are already in tmux!"
|
||||||
|
( which tmux 2>/dev/null ) || fail "No tmux found, can't continue"
|
||||||
|
|
||||||
tmux-agent
|
tmux-agent
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue