dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4a218372643073edce079d2fd28a23fb7b490e03
parent 5f1d9f7b9bae2016d8ca1307583eb13f3ac834fc
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat,  7 Dec 2019 10:50:36 +0100

Fix argument parsing in scale script

Diffstat:
M.local/bin/scale.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.local/bin/scale.sh b/.local/bin/scale.sh @@ -5,7 +5,9 @@ if [ $# -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then exit 0 fi +scale="$1" +shift for f in "$@"; do echo "$f" - convert "$f" -resize "$1" "scaled-$f" + convert "$f" -resize "$scale" "scaled-$f" done