]> git.plutz.net Git - shellwiki/commitdiff
bugfix: prevent test errors from bleeding into http headers
authorPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 22:49:17 +0000 (00:49 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 24 Aug 2023 22:49:17 +0000 (00:49 +0200)
handlers/60_move_rename_delete.sh

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