diff options
author | Nils <git@velohero.com> | 2018-01-11 12:30:46 +0100 |
---|---|---|
committer | Nils <git@velohero.com> | 2018-01-11 12:30:46 +0100 |
commit | 4e6a540aad74b0165ad999df748738d127883416 (patch) | |
tree | 6046aeb9d95e76b412203434caab929bba2bb5c5 /gallery.sh | |
parent | 08ba9827c5e6128464b75b658f64685f4f792874 (diff) |
fix some shellcheck warnings
Diffstat (limited to 'gallery.sh')
-rwxr-xr-x | gallery.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -45,9 +45,9 @@ datetime+=" UTC" function usage { returnCode="$1" echo -e "Usage: $me [-t <title>] [-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 |