aboutsummaryrefslogtreecommitdiff
path: root/open-url
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-06-20 23:01:09 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-06-20 23:01:09 +0200
commit581865ee0c8b8aea872f053d804a41fb5f416b17 (patch)
tree9a2f99ea48c31629a5c3c42b0454483982cdbfed /open-url
parentc5d101ab2c9db3b1a001cb56953cb90b24f8fdcf (diff)
downloadscripts-581865ee0c8b8aea872f053d804a41fb5f416b17.tar.gz
scripts-581865ee0c8b8aea872f053d804a41fb5f416b17.zip
Various shellcheck fixes (www.shellcheck.net)
Diffstat (limited to '')
-rwxr-xr-xopen-url11
1 files changed, 4 insertions, 7 deletions
diff --git a/open-url b/open-url
index 8681895..bd65a84 100755
--- a/open-url
+++ b/open-url
@@ -13,19 +13,16 @@ echo "$@" | xsel -ib
13 13
14case "$@" in 14case "$@" in
15 mailto:*) 15 mailto:*)
16 mail-compose $@ 16 mail-compose "$@"
17 ;; 17 ;;
18 *.jpg | *.jpeg | *.png) 18 *.jpg | *.jpeg | *.png)
19 spawn $imageviewer "$@" 19 spawn "$imageviewer" "$@"
20 ;; 20 ;;
21 *.gif) 21 *.gif)
22 spawn $imageviewer "$@" 22 spawn "$imageviewer" "$@"
23 ;; 23 ;;
24# https://www.youtube.com/watch\?v=*)
25# spawn $VIDEOPLAYER "$1"
26# ;;
27 *) 24 *)
28 spawn $browser "$@" 25 spawn "$browser" "$@"
29 ;; 26 ;;
30esac 27esac
31 28

Generated with cgit - Back to sebastiano.tronto.net