Fixed a vim inspired bug, removed -q from the git push statements so that users can see what's going on.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user