From 37066b6a9be572d5b11cdf8f465298b44988343c Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Mon, 3 Apr 2023 20:00:19 -0400 Subject: [PATCH] Fixed a vim inspired bug, removed -q from the git push statements so that users can see what's going on. --- notestorm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notestorm b/notestorm index 1a9c449..8de6948 100755 --- a/notestorm +++ b/notestorm @@ -111,7 +111,7 @@ add_note() { if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then { git -C "$xdgPath/notestorm/notes" add -A git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note added.")" - git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 + git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 fi else infobox "Note canceled." @@ -141,7 +141,7 @@ delete_note() { if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then { git -C "$xdgPath/notestorm/notes" rm -f "$1" git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note deleted.")" - git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 + git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 fi else infobox "$(gettext "Action canceled.")" @@ -175,7 +175,7 @@ edit_note() { if [[ -d "$xdgPath/notestorm/notes/.git" ]]; then { git -C "$xdgPath/notestorm/notes" add -A git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note updated.")" - git -C "$xdgPath/notestorm/notes" push -q ii; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 + git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 fi else infobox "$(gettext "Changes discarded.")" @@ -201,7 +201,7 @@ encrypt_note() { { git -C "$xdgPath/notestorm/notes" add -A git rm -f "$1" git -C "$xdgPath/notestorm/notes" commit -m "$(*gettext "Automatic push from notestorm, note encrypted.")" - git -C "$xdgPath/notestorm/notes" push -q ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 + git -C "$xdgPath/notestorm/notes" push ; } | dialog --progressbox "$(gettext "Pushing to git...")" -1 -1 fi return fi