summaryrefslogtreecommitdiff
path: root/gallery.sh
diff options
context:
space:
mode:
authorNils <git@velohero.com>2018-01-11 12:30:46 +0100
committerNils <git@velohero.com>2018-01-11 12:30:46 +0100
commit4e6a540aad74b0165ad999df748738d127883416 (patch)
tree6046aeb9d95e76b412203434caab929bba2bb5c5 /gallery.sh
parent08ba9827c5e6128464b75b658f64685f4f792874 (diff)
fix some shellcheck warnings
Diffstat (limited to 'gallery.sh')
-rwxr-xr-xgallery.sh10
1 files 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 <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