diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-11-24 07:48:33 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-11-24 07:48:33 -0500 |
commit | 938af8f7ebe8b769f0916ebdb19b146d0463409a (patch) | |
tree | 25d5e7b4125e0c08736a6724a064b54e3265a9e3 /bin/muttimage | |
parent | 7698abb0f9fc236b578e3ec6caa31867de019c6e (diff) |
env bash
Diffstat (limited to 'bin/muttimage')
-rwxr-xr-x | bin/muttimage | 4 |
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]} |