summaryrefslogtreecommitdiff
path: root/bin/muttimage
diff options
context:
space:
mode:
authorWayne Reeves <darthwayne@hotmail.com>2019-11-27 10:57:14 -0600
committerWayne Reeves <darthwayne@hotmail.com>2019-11-27 10:57:14 -0600
commit07a4cc290dba7842b2ffc73ca86d23e3cc8f989a (patch)
treeb3725d048d8d706e7480f87a2f58c10bed859782 /bin/muttimage
parent9fc9bc820d5d8d811b9b63d9f8d6f30906428f68 (diff)
parent569bda9c5fddf131a962237422326de9929c6b77 (diff)
Merge branch 'master' of https://github.com/lukesmithxyz/mutt-wizard
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]}