Fixed odd quirk where it would delete tags on closing of prompt. Meh.

This commit is contained in:
photosheep 2021-09-25 15:40:38 -04:00
parent 7b9c9d8f29
commit 8f55e6ed9a
1 changed files with 10 additions and 3 deletions

View File

@ -64,7 +64,13 @@ CALL_PROMPT() {
--image tag \
--separator=" " \
$(cat $TEMP_DIR/tags) | \
sed 's/TRUE //' | tr -d '\n')
sed 's/TRUE //' | tr -d '\n' )
if [ -n "$APPLIED_TAGS" ]; then
return 0
else
return 1
fi
}
APPLY_TAG() {
@ -76,8 +82,9 @@ for x in $@
do
MOVE_DIR $x
SET_TAG $x
CALL_PROMPT $x
APPLY_TAG $x "$APPLIED_TAGS"
if CALL_PROMPT $x ; then
APPLY_TAG $x "$APPLIED_TAGS"
fi
done
# Cleanup