Skip to content

Commit 57961cb

Browse files
committed
feat: show simple error message if yq is missing
1 parent 1c2cf65 commit 57961cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/tmux-nerd-font-window-name

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
if ! command -v yq >/dev/null 2>&1; then
4+
echo "$1 ⚠︎ yq missing"
5+
exit 1
6+
fi
7+
38
NAME="$1"
49
PANES="$2"
510
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

0 commit comments

Comments
 (0)