commit 31cc6d0ecb0ca3d0bf6fd29245d7f7c3d496f5a0 parent 6a68e47929dda7a3a052a4512cda30ca53cabccb Author: Claudio Alessi <smoppy@gmail.com> Date: Sat, 20 Aug 2022 14:21:33 +0200 [sendpush] shift arguments only once Diffstat:
M | src/sendpush | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sendpush b/src/sendpush @@ -16,8 +16,8 @@ main() { u) uri="$OPTARG";; h) usage;; esac - shift "$(echo "$OPTIND - 1"|bc)" done + shift "$(echo "$OPTIND - 1"|bc)" [ -z "$apikey" -o -z "$content" ] && usage