diff options
author | Nils <git@velohero.com> | 2018-11-24 17:34:28 +0100 |
---|---|---|
committer | Nils <git@velohero.com> | 2018-11-24 17:34:28 +0100 |
commit | 4638945a268e4677c95ec44daccdff6631143993 (patch) | |
tree | 237f595b99fe8fda65668d34ac613da00cbd097d /gallery.sh | |
parent | 95106e616c6fab0dc8c8a7952a0012046a979cf1 (diff) |
case-insensitive
Diffstat (limited to 'gallery.sh')
-rwxr-xr-x | gallery.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -124,7 +124,7 @@ cat > "$htmlfile" << EOF EOF ### Photos (JPG) -if [[ $(find . -maxdepth 1 -type f -name \*.jpg | wc -l) -gt 0 ]]; then +if [[ $(find . -maxdepth 1 -type f -iname \*.jpg | wc -l) -gt 0 ]]; then echo '<div class="row">' >> "$htmlfile" ## Generate Images @@ -225,7 +225,7 @@ done fi ### Movies (MOV or MP4) -if [[ $(find . -maxdepth 1 -type f -name \*.mov -o -name '*.mp4' | wc -l) -gt 0 ]]; then +if [[ $(find . -maxdepth 1 -type f -iname \*.mov -o -iname '*.mp4' | wc -l) -gt 0 ]]; then cat >> "$htmlfile" << EOF <div class="row"> <div class="col-xs-12"> @@ -235,7 +235,7 @@ if [[ $(find . -maxdepth 1 -type f -name \*.mov -o -name '*.mp4' | wc -l) -gt 0 <div class="row"> <div class="col-xs-12"> EOF - if [[ $(find . -maxdepth 1 -type f -name \*.mov | wc -l) -gt 0 ]]; then + if [[ $(find . -maxdepth 1 -type f -iname \*.mov | wc -l) -gt 0 ]]; then for filename in *.[mM][oO][vV]; do filesize=$(getFileSize "$filename") cat >> "$htmlfile" << EOF @@ -243,7 +243,7 @@ EOF EOF done fi - if [[ $(find . -maxdepth 1 -type f -name \*.mp4 | wc -l) -gt 0 ]]; then + if [[ $(find . -maxdepth 1 -type f -iname \*.mp4 | wc -l) -gt 0 ]]; then for filename in *.[mM][pP]4; do filesize=$(getFileSize "$filename") cat >> "$htmlfile" << EOF @@ -255,7 +255,7 @@ EOF fi ### Downloads (ZIP) -if [[ $(find . -maxdepth 1 -type f -name \*.zip | wc -l) -gt 0 ]]; then +if [[ $(find . -maxdepth 1 -type f -iname \*.zip | wc -l) -gt 0 ]]; then cat >> "$htmlfile" << EOF <div class="row"> <div class="col-xs-12"> |