]> git.plutz.net Git - shellwiki/commitdiff
prevent spamming error log
authorPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 17:20:38 +0000 (19:20 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 17:20:38 +0000 (19:20 +0200)
handlers/60_move_rename_delete.sh

index 3879e9b86b4c8c104d5fdd9f286699cfeb80c15c..47886c59d8f1f44130f3c31b27c59194caf79d05 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-l10n_immutablepage >/dev/null \
+l10n_immutablepage 2>&1 >/dev/null \
 || l10n_immutablepage(){  #TRANSLATION
   cat <<-EOF
          <h1>Immutable Page</h1>
@@ -33,7 +33,7 @@ case "${PATH_INFO}" in
   *) return 1;;
 esac
 
-l10n_movepage >/dev/null \
+l10n_movepage 2>&1 >/dev/null \
 || l10n_movepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Move Page</h1>
@@ -49,7 +49,7 @@ l10n_movepage >/dev/null \
          <button type=submit name=action value=cancel>Cancel</button>
        EOF
 }
-l10n_renamepage >/dev/null \
+l10n_renamepage 2>&1 >/dev/null \
 || l10n_renamepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Rename Page</h1>
@@ -65,7 +65,7 @@ l10n_renamepage >/dev/null \
          <button type=submit name=action value=cancel>Cancel</button>
        EOF
 }
-l10n_deletepage >/dev/null \
+l10n_deletepage 2>&1 >/dev/null \
 || l10n_deletepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Delete Page</h1>