aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-15 19:48:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-15 19:48:51 +1200
commit88c3653afae83c64cdfa8f9a2849b46752f19ba4 (patch)
tree6f2d5ec902cd5629d286ad77c0e3a51ced1fe11e /bin
parentSilence a couple of Git hints (diff)
downloaddotfiles-88c3653afae83c64cdfa8f9a2849b46752f19ba4.tar.gz
dotfiles-88c3653afae83c64cdfa8f9a2849b46752f19ba4.zip
Correct order of tasks in xgo(1)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xgo6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/xgo b/bin/xgo
index bdfcc402..e808027c 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -17,6 +17,9 @@ for url ; do (
;;
esac
+ # Get the MIME type data
+ mt=$(urlmt "$url")
+
# If the MIME type is an image, load it in feh(1)
case $mt in
image/gif) ;;
@@ -25,9 +28,6 @@ for url ; do (
;;
esac
- # Get the MIME type data
- mt=$(urlmt "$url")
-
# Otherwise, just pass it to br(1)
br "$url"
) & done