fix: make script work a little better

meow
This commit is contained in:
Ahwx 2024-11-16 11:25:58 +01:00
parent 8863656078
commit b309426744

View file

@ -7,7 +7,7 @@
NOTEDIR="$HOME/Notes" NOTEDIR="$HOME/Notes"
CHOSEN=$(find "$HOME/Notes" -follow | grep -E '.md$' | bemenu -l 10) CHOSEN=$(find "$HOME/Notes" -follow | grep -E '.md$' | bemenu -l 10 --ignorecase)
cd "$NOTEDIR" || mkdir -p "$NOTEDIR" && cd "$NOTEDIR" || echo 'Error with moving into directory, is "$NOTEDIR" set?' # Change dir to notes dir, if it doesn't exist, create it and try again. Otherwise it should just die, I guess? cd "$NOTEDIR" || mkdir -p "$NOTEDIR" && cd "$NOTEDIR" || echo 'Error with moving into directory, is "$NOTEDIR" set?' # Change dir to notes dir, if it doesn't exist, create it and try again. Otherwise it should just die, I guess?
echo "Check if connected to internet and pull changes from Git" echo "Check if connected to internet and pull changes from Git"