diff options
-rwxr-xr-x | contrib/imv-folder | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/contrib/imv-folder b/contrib/imv-folder index 33ea051..d9fb46f 100755 --- a/contrib/imv-folder +++ b/contrib/imv-folder @@ -1,10 +1,2 @@ -#!/bin/bash -image="$1" -declare -a ARGS order -readarray -t -d '' order < <(printf '%s\0' "$(dirname "$image")"/* | sort -z --sort=version) -for a in "${order[@]}"; do - if [ -f "$a" ]; then - ARGS+=("$a") - fi -done -exec imv "${ARGS[@]}" -n "$image" +#!/bin/sh +exec imv -n "$1" "$(dirname "$1")" |