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 5f1d9f7b9bae2016d8ca1307583eb13f3ac834fc
parent 2dfc500d8ec5adfeb9b7aa65fd59a3b0aa90f619
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat,  7 Dec 2019 10:49:21 +0100

Check for number of args in scale script

Diffstat:
M.local/bin/scale.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/scale.sh b/.local/bin/scale.sh @@ -1,5 +1,5 @@ #!/bin/sh -if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then +if [ $# -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then echo "Scale image sizes using Imagemagick's convert command." echo "Usage: $0 <PERCENTAGE>% <FILE[S]>" exit 0