this repo has no description

fix: bring back path as last arg (#4)

Reviewed-on: https://codeberg.org/comfysage/ebil/pulls/4
Co-authored-by: june <me@koi.rip>
Co-committed-by: june <me@koi.rip>

authored by koi.rip koi.rip and committed by robinwobin.dev de6f9771 da4329c8

+8 -1
+8 -1
ebil.sh
··· 97 97 local site="${EBIL_SITE:-}" 98 98 local path="${EBIL_PATH:-.}" 99 99 local host="${EBIL_HOST:-ebil.club}" 100 + local path_opt='' 100 101 101 102 if [ "$#" -gt 0 ]; then 102 103 cmd="${1#-}" ··· 110 111 shift 111 112 ;; 112 113 --path) 113 - path="$2" 114 + path_opt="$2" 114 115 shift 115 116 ;; 116 117 --help) ··· 120 121 esac 121 122 shift 122 123 done 124 + 125 + if [[ -n "$path_opt" ]]; then 126 + path="$path_opt" 127 + else 128 + [[ -n "${1:-}" ]] && path="$1" 129 + fi 123 130 124 131 path="$(realpath "$path")" 125 132