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
|
||||
zmodload zsh/mapfile
|
||||
PREVIEW_TENTHS=7
|
||||
IMG=$1
|
||||
|
||||
|
@ -27,9 +26,9 @@ videsc() {
|
|||
|
||||
${EDITOR:-vim} $DESC_FILE || return $?
|
||||
|
||||
if [[ $DESC_FILE -nt $DESC_FILE.stamp ]]; then
|
||||
pbcopy < $DESC_FILE
|
||||
exiftool -P -Description="$mapfile[$DESC_FILE]" $IMG
|
||||
if [[ $DESC_FILE -nt $DESC_FILE.stamp ]]; then
|
||||
exiftool -P "-Description<=$DESC_FILE" $IMG
|
||||
else
|
||||
echo 'no changes detected, not writing updated description.' >&2
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue