diff options
| author | EuAndreh <eu@euandre.org> | 2021-06-10 22:28:57 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-06-10 22:28:57 -0300 |
| commit | db0645f1ec225a6353aa2adb58426bae2f75542a (patch) | |
| tree | 33a3fb4bfb13eae8092262444ba9a23ff026e518 /scripts/open | |
| parent | tmux.conf: Remove unused key binding (diff) | |
| download | dotfiles-db0645f1ec225a6353aa2adb58426bae2f75542a.tar.gz dotfiles-db0645f1ec225a6353aa2adb58426bae2f75542a.tar.xz | |
scripts/open: Do nothing when no argument is given
Diffstat (limited to '')
| -rwxr-xr-x | scripts/open | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/open b/scripts/open index 7fa2d505..23f12fe2 100755 --- a/scripts/open +++ b/scripts/open @@ -1,5 +1,11 @@ #!/bin/sh -set -eux +set -eu + +if [ -z "${1:-}" ]; then + exit +fi + +set -x case "$1" in *.ico|*.jpg|*.jpeg|*.png) |
