summaryrefslogtreecommitdiff
path: root/bin/muttimage
diff options
context:
space:
mode:
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]}