videsc: Avoid need for zsh/mapfile
This commit is contained in:
parent
17c95ee9af
commit
c3531b1bdc
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
zmodload zsh/mapfile
|
|
||||||
PREVIEW_TENTHS=7
|
PREVIEW_TENTHS=7
|
||||||
IMG=$1
|
IMG=$1
|
||||||
|
|
||||||
|
@ -27,9 +26,9 @@ videsc() {
|
||||||
|
|
||||||
${EDITOR:-vim} $DESC_FILE || return $?
|
${EDITOR:-vim} $DESC_FILE || return $?
|
||||||
|
|
||||||
|
pbcopy < $DESC_FILE
|
||||||
if [[ $DESC_FILE -nt $DESC_FILE.stamp ]]; then
|
if [[ $DESC_FILE -nt $DESC_FILE.stamp ]]; then
|
||||||
pbcopy < $DESC_FILE
|
exiftool -P "-Description<=$DESC_FILE" $IMG
|
||||||
exiftool -P -Description="$mapfile[$DESC_FILE]" $IMG
|
|
||||||
else
|
else
|
||||||
echo 'no changes detected, not writing updated description.' >&2
|
echo 'no changes detected, not writing updated description.' >&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue