fix: exit if no dir exists

This commit is contained in:
Ahwx 2024-11-07 13:45:48 +01:00
parent dc259911b7
commit 618e037652

View file

@ -18,7 +18,5 @@ if [ "$CHOSEN" ]; then
git add "$CHOSEN" && git commit -m "chore: updates (auto)" && git push && notify-send "Changes pushed" git add "$CHOSEN" && git commit -m "chore: updates (auto)" && git push && notify-send "Changes pushed"
else else
cd "$NOTEDIR" || exit 1 exit 1
kitty -e nvim
fi fi