Fixed odd quirk where it would delete tags on closing of prompt. Meh.
This commit is contained in:
parent
7b9c9d8f29
commit
8f55e6ed9a
13
tmsu-prompt
13
tmsu-prompt
|
@ -64,7 +64,13 @@ CALL_PROMPT() {
|
||||||
--image tag \
|
--image tag \
|
||||||
--separator=" " \
|
--separator=" " \
|
||||||
$(cat $TEMP_DIR/tags) | \
|
$(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() {
|
APPLY_TAG() {
|
||||||
|
@ -76,8 +82,9 @@ for x in $@
|
||||||
do
|
do
|
||||||
MOVE_DIR $x
|
MOVE_DIR $x
|
||||||
SET_TAG $x
|
SET_TAG $x
|
||||||
CALL_PROMPT $x
|
if CALL_PROMPT $x ; then
|
||||||
APPLY_TAG $x "$APPLIED_TAGS"
|
APPLY_TAG $x "$APPLIED_TAGS"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
Loading…
Reference in New Issue