Skip to content

Commit

Permalink
feat: show simple error message if yq is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmedeski committed Mar 26, 2024
1 parent 1c2cf65 commit 57961cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/tmux-nerd-font-window-name
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

if ! command -v yq >/dev/null 2>&1; then
echo "$1 ⚠︎ yq missing"
exit 1
fi

NAME="$1"
PANES="$2"
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down

0 comments on commit 57961cb

Please sign in to comment.