diff options
Diffstat (limited to 'bin/open')
-rwxr-xr-x | bin/open | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -38,27 +38,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -103,7 +103,7 @@ for f in "$@"; do mailto:*) alot compose "$f" ;; - *) + (*) DIR="$(cd -- "$(dirname -- "$0")"; pwd)" CMD="$(without-env PATH "$DIR" -- command -v xdg-open)" "$CMD" "$f" |