From 618e0376528e93b2ce5c1a247ed7c470c545f4b3 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Thu, 7 Nov 2024 13:45:48 +0100 Subject: [PATCH] fix: exit if no dir exists --- modules/home/scripts/scripts/notes.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/home/scripts/scripts/notes.sh b/modules/home/scripts/scripts/notes.sh index 9bd1fa9..e83e231 100644 --- a/modules/home/scripts/scripts/notes.sh +++ b/modules/home/scripts/scripts/notes.sh @@ -18,7 +18,5 @@ if [ "$CHOSEN" ]; then git add "$CHOSEN" && git commit -m "chore: updates (auto)" && git push && notify-send "Changes pushed" else - cd "$NOTEDIR" || exit 1 - kitty -e nvim + exit 1 fi -