Consistency

This commit is contained in:
David Heinemeier Hansson
2026-05-21 19:30:30 +02:00
parent 486c73e6df
commit fed2298235
14 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ usage() {
echo "Usage: omarchy-menu-images [--selected <image>] [--print-name] [--show-labels] [--filterable] [--lazy-thumbnails] [--preload] [--cache-only] <image-dir>..."
}
while [[ $# -gt 0 ]]; do
while (( $# > 0 )); do
case "$1" in
--selected)
if (( $# < 2 )); then
@@ -199,7 +199,7 @@ elif [[ $rows_cache_hit != true ]]; then
for image in "${image_files[@]}"; do
thumbnail=$(thumbnail_for "$image")
[[ -n $thumbnail ]] || continue
if [[ $lazy_thumbnails == true && $cache_only != true && $thumbnail == "$image" ]]; then
if [[ $lazy_thumbnails == true && $cache_only != true && $thumbnail == $image ]]; then
rows_cacheable=false
fi