summaryrefslogtreecommitdiffstats
path: root/la_remove_up_trigger.function
diff options
context:
space:
mode:
authorThomas Orgis2020-09-30 13:08:32 +0200
committerThomas Orgis2020-09-30 13:08:32 +0200
commit8fc6f9aa9f9d6de996cca724e4a6abbd7d916ea4 (patch)
tree8ce694d8ecd4ae510ecc3dc3207424cfc7cc0664 /la_remove_up_trigger.function
parentd9a011f5502069793bfd28c157427cc186f9ea67 (diff)
la_remove_up_trigger.function: fine-tuning to catch all and none
All dependants need to be scrutinized, not just first order. Also, the grep in .la files needs to be avoided in case there are none.
Diffstat (limited to 'la_remove_up_trigger.function')
-rwxr-xr-xla_remove_up_trigger.function4
1 files changed, 2 insertions, 2 deletions
diff --git a/la_remove_up_trigger.function b/la_remove_up_trigger.function
index 3881f742a3..fe80805124 100755
--- a/la_remove_up_trigger.function
+++ b/la_remove_up_trigger.function
@@ -19,13 +19,13 @@ la_remove_up_trigger()
if [[ $force_all -gt 0 ]]; then
check_spells=$(gaze installed | cut -d: -f1)
else
- check_spells=$(show_up_depends $SPELL 1)
+ check_spells=$(show_up_depends $SPELL)
fi
for other_spell in $check_spells
do
[[ $SPELL != $other_spell ]] || continue
match_count=$( gaze install "$other_spell" | grep '\.la$' \
- | xargs grep $la_match | wc -l )
+ | xargs -r grep $la_match | wc -l )
[[ "$match_count" -gt 0 ]] && up_trigger "$other_spell" cast_self
done
true