From ae2a439c14f31d010908e615cbc91f050d452b6d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 9 May 2025 22:21:08 +0200 Subject: [PATCH] chore: update zk setup script prompts and execution --- .bin/setup-zk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.bin/setup-zk b/.bin/setup-zk index f719962..2af5c43 100755 --- a/.bin/setup-zk +++ b/.bin/setup-zk @@ -7,8 +7,9 @@ else echo "[zk] Zettelkasten already set up." fi -read -p "Would you like to run 'zk' now? [y/N] " -n 1 -r +read -p "Would you like open your zettelkasten? [y/N] " -n 1 -r echo + if [[ $REPLY =~ ^[Yy]$ ]]; then - command -v zk >/dev/null 2>&1 && zk || echo "Error: 'zk' command not found in PATH" + [ -x "$(command -v zk)" ] zk || zk fi