X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F60_edit.sh;h=9d1a404a85485db348e1ee405054527655de5c95;hb=295a04b184bb6cd427c35c58f88d3d35a0552ed8;hp=6d4e1eac12bd7c1359b7b1a95ad9bd19dcfa11b4;hpb=1addbd404bc8cd6f869e9e1df19cc83081fa7bc2;p=shellwiki diff --git a/handlers/60_edit.sh b/handlers/60_edit.sh index 6d4e1ea..9d1a404 100755 --- a/handlers/60_edit.sh +++ b/handlers/60_edit.sh @@ -43,7 +43,7 @@ elif [ "$edit_action" = update ]; then REDIRECT "${_BASE}${PATH_INFO%\[edit\]}/[edit]" fi - if [ "$(which git)" ]; then + if [ "$REV_PAGES" = true ]; then git -C "$_DATA" add \ -- "pages/$edit_page/#page.md" git -C "$_DATA" commit -qm \