From de6f9771258358fd6407368b96241e9c35e556a4 Mon Sep 17 00:00:00 2001 From: june Date: Thu, 19 Feb 2026 21:11:34 +0100 Subject: [PATCH] fix: bring back path as last arg (#4) Reviewed-on: https://codeberg.org/comfysage/ebil/pulls/4 Co-authored-by: june Co-committed-by: june --- ebil.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ebil.sh b/ebil.sh index f5dbdbb..9ab4104 100755 --- a/ebil.sh +++ b/ebil.sh @@ -97,6 +97,7 @@ main() { local site="${EBIL_SITE:-}" local path="${EBIL_PATH:-.}" local host="${EBIL_HOST:-ebil.club}" + local path_opt='' if [ "$#" -gt 0 ]; then cmd="${1#-}" @@ -110,7 +111,7 @@ main() { shift ;; --path) - path="$2" + path_opt="$2" shift ;; --help) @@ -121,6 +122,12 @@ main() { shift done + if [[ -n "$path_opt" ]]; then + path="$path_opt" + else + [[ -n "${1:-}" ]] && path="$1" + fi + path="$(realpath "$path")" case "$cmd" in -- 2.51.2