fix: update information

This commit is contained in:
Ahwx 2025-05-16 01:48:26 +02:00
parent 6eef1bfdfa
commit 50a5beb8b5

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# MIT license # MIT license
# Ahwx <ahwx at ahwx dot org> https://ahwx.org - 2024 # liv < liv at liv dot town > https://liv.town - 2024
# #
# Dependencies: find/grep/bemenu/ping/git/ # Dependencies: find/grep/bemenu/ping/git/
@ -14,9 +14,9 @@ echo "Check if connected to internet and pull changes from Git"
ping -c1 github.com >/dev/null && notify-send "$(git pull)" # Pull most recent changes, be sure to not create conficts... ping -c1 github.com >/dev/null && notify-send "$(git pull)" # Pull most recent changes, be sure to not create conficts...
if [ "$CHOSEN" ]; then if [ "$CHOSEN" ]; then
kitty -e nvim "$CHOSEN" # Finally open chosen note kitty -e nvim "$CHOSEN" # Finally open chosen note
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
exit 1 exit 1
fi fi