diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /bin/cronic | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/cronic')
| -rwxr-xr-x | bin/cronic | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/cronic b/bin/cronic deleted file mode 100755 index 804f803..0000000 --- a/bin/cronic +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -guienter= -while getopts Gh opt; do - case "$opt" in - G) guienter=1 ;; - h | ?) - printf "usage: %s [ARGS...]\n" "$(basename "$0")" - printf "\n" - printf "converts reasonably behaved programs that return a nonzero exit status\n" - printf "into the back-asswards behavior cron expects, which is that printing text\n" - printf "to stdout means an error occurred and any status code, successful or not,\n" - printf "is disregarded.\n" - printf "\n" - printf " -G gui-enter as current user\n" - printf "\n" - exit 2 - ;; - esac -done -shift $((OPTIND - 1)) - -if [ -n "$guienter" ]; then - set -- /home/robert/bin/gui-enter "$(id -un)" "$@" -fi - -"$@" 1>&2 || printf "error. check stderr\n" |