summaryrefslogtreecommitdiff
path: root/bin/muttimage
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-11-24 07:48:33 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-11-24 07:48:33 -0500
commit938af8f7ebe8b769f0916ebdb19b146d0463409a (patch)
tree25d5e7b4125e0c08736a6724a064b54e3265a9e3 /bin/muttimage
parent7698abb0f9fc236b578e3ec6caa31867de019c6e (diff)
env bash
Diffstat (limited to 'bin/muttimage')
-rwxr-xr-xbin/muttimage4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/muttimage b/bin/muttimage
index c798293..a846bea 100755
--- a/bin/muttimage
+++ b/bin/muttimage
@@ -1,9 +1,9 @@
-#!/bin/bash
+#!/usr/bin/env bash
#get image resolution
resolution=$(identify $1 | awk '{print $3}')
IFS='x' # x is set as delimiter
-read -ra ADDR <<< "$resolution"
+read -ra ADDR <<< "$resolution"
width=${ADDR[0]}
height=${ADDR[1]}