blob: 33ea0519031564f1802dfe649dbb0cfa1678efc2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/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"
|