]> git.plutz.net Git - shellwiki/blobdiff - handlers/60_move_rename_delete.sh
LICENSE NOTICE: ISC License
[shellwiki] / handlers / 60_move_rename_delete.sh
index 3879e9b86b4c8c104d5fdd9f286699cfeb80c15c..84db9e4d1a5459c03830c14f6960a5c015425f30 100755 (executable)
@@ -1,6 +1,20 @@
 #!/bin/sh
 
-l10n_immutablepage >/dev/null \
+# Copyright 2022 - 2023 Paul Hänsch
+# 
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+# 
+# THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+l10n_immutablepage >/dev/null 2>&1 \
 || l10n_immutablepage(){  #TRANSLATION
   cat <<-EOF
          <h1>Immutable Page</h1>
@@ -33,7 +47,7 @@ case "${PATH_INFO}" in
   *) return 1;;
 esac
 
-l10n_movepage >/dev/null \
+l10n_movepage >/dev/null 2>&1 \
 || l10n_movepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Move Page</h1>
@@ -49,7 +63,7 @@ l10n_movepage >/dev/null \
          <button type=submit name=action value=cancel>Cancel</button>
        EOF
 }
-l10n_renamepage >/dev/null \
+l10n_renamepage >/dev/null 2>&1 \
 || l10n_renamepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Rename Page</h1>
@@ -65,7 +79,7 @@ l10n_renamepage >/dev/null \
          <button type=submit name=action value=cancel>Cancel</button>
        EOF
 }
-l10n_deletepage >/dev/null \
+l10n_deletepage >/dev/null 2>&1 \
 || l10n_deletepage(){  # TRANSLATION
   cat <<-EOF
          <h1>Delete Page</h1>