diff --git a/.bin/setup-zk b/.bin/setup-zk index 3269333..35a6df8 100755 --- a/.bin/setup-zk +++ b/.bin/setup-zk @@ -11,10 +11,10 @@ read -p "Would you like open your zettelkasten? [y/N] " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then - if command -v zk &>/dev/null; then + if [ -x "$(command -v zk)" ]; then zk else - echo "Error: 'zk' command not found" + echo "Error: 'zk' command not found or not executable" exit 1 fi fi