From 4e6a540aad74b0165ad999df748738d127883416 Mon Sep 17 00:00:00 2001 From: Nils Date: Thu, 11 Jan 2018 12:30:46 +0100 Subject: fix some shellcheck warnings --- gallery.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery.sh b/gallery.sh index aef305c..437207c 100755 --- a/gallery.sh +++ b/gallery.sh @@ -45,9 +45,9 @@ datetime+=" UTC" function usage { returnCode="$1" echo -e "Usage: $me [-t ] [-d <thumbdir>] [-h]: - [-t <title>]\t sets the title (default: $title) - [-d <thumbdir>]\t sets the thumbdir (default: $thumbdir) - [-h]\t\t displays help (this message)" + [-t <title>]\\t sets the title (default: $title) + [-d <thumbdir>]\\t sets the thumbdir (default: $thumbdir) + [-h]\\t\\t displays help (this message)" exit "$returnCode" } @@ -131,7 +131,7 @@ echo '<div class="row">' >> "$htmlfile" numfiles=0 for filename in *.[jJ][pP][gG]; do filelist[$numfiles]=$filename - let numfiles++ + (( numfiles++ )) for res in ${heights[*]}; do if [[ ! -s $thumbdir/$res/$filename ]]; then debugOutput "$thumbdir/$res/$filename" @@ -219,7 +219,7 @@ EOF </body> </html> EOF - let file++ + (( file++ )) done fi -- cgit v1.2.3