Fixed odd quirk where it would delete tags on closing of prompt. Meh.
This commit is contained in:
parent
7b9c9d8f29
commit
8f55e6ed9a
11
tmsu-prompt
11
tmsu-prompt
|
@ -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
|
||||
if CALL_PROMPT $x ; then
|
||||
APPLY_TAG $x "$APPLIED_TAGS"
|
||||
fi
|
||||
done
|
||||
|
||||
# Cleanup
|
||||
|
|
Loading…
Reference in New Issue