aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-15 21:27:13 -0300
committerEuAndreh <eu@euandre.org>2023-03-15 21:27:13 -0300
commit7d777dc298cc15f6068b1f4d3e48a4dc81e4e613 (patch)
tree32e691a7053771e25de9f2806aef1a98ff6d6b19
parentTODOs.md: Add #td-fe8a0345-543a-057b-5aef-b2df389a0f5e (diff)
downloadserver-7d777dc298cc15f6068b1f4d3e48a4dc81e4e613.tar.gz
server-7d777dc298cc15f6068b1f4d3e48a4dc81e4e613.tar.xz
src/infrastructure/scripts/r.sh: Remove unused script
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show 7d777dc298cc15f6068b1f4d3e48a4dc81e4e613 git notes --ref=refs/notes/ci-data show 7d777dc298cc15f6068b1f4d3e48a4dc81e4e613 Exit status: 0 Duration: 27
-rw-r--r--src/infrastructure/guix/system.scm1
-rwxr-xr-xsrc/infrastructure/scripts/r.sh77
2 files changed, 0 insertions, 78 deletions
diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm
index 6b2ff14..ff5dcca 100644
--- a/src/infrastructure/guix/system.scm
+++ b/src/infrastructure/guix/system.scm
@@ -310,7 +310,6 @@
trash-cli
tree))
(list
- (script "r" (file "src/infrastructure/scripts/r.sh"))
(script "gc" (file "src/infrastructure/scripts/gc.sh"))
(script "check" (file "src/infrastructure/scripts/check.sh"))
(script "backup" (file "src/infrastructure/scripts/backup.sh"))
diff --git a/src/infrastructure/scripts/r.sh b/src/infrastructure/scripts/r.sh
deleted file mode 100755
index 8e74576..0000000
--- a/src/infrastructure/scripts/r.sh
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-set -eu
-
-usage() {
- cat <<-'EOF'
- Usage:
- r COMMAND...
- r -h
- EOF
-}
-
-help() {
- cat <<-'EOF'
-
-
- Options:
- -h, --help show this message
-
- COMMAND the command to be executed
-
-
- Execute the given command, with a proper login environment
- loaded.
-
-
- Examples:
-
- Run a backup via SSH:
-
- $ ssh euandre.org r backup -q cron
- EOF
-}
-
-
-for flag in "$@"; do
- case "$flag" in
- --)
- break
- ;;
- --help)
- usage
- help
- exit
- ;;
- *)
- ;;
- esac
-done
-
-while getopts 'h' flag; do
- case "$flag" in
- h)
- usage
- help
- exit
- ;;
- *)
- usage >&2
- exit 2
- ;;
- esac
-done
-shift $((OPTIND - 1))
-
-if [ -z "${1:-}" ]; then
- printf 'Missing COMMAND.\n\n' >&2
- usage >&2
- exit 2
-fi
-
-
-set +eu
-# shellcheck source=/dev/null
-. /etc/rc
-set -eu
-
-exec "$@"