term: Fix wrapper scripts in NixOS. Thanks Tdeo.

This commit is contained in:
Dylan Araps 2019-06-12 20:35:04 +03:00
parent 3e92b3b202
commit 2caec13bf3
1 changed files with 2 additions and 2 deletions

View File

@ -2887,9 +2887,9 @@ get_term() {
term="${name##*/}"
# Fix wrapper names in NixOS.
[[ "$term" == .*-wrapped ]] && {
[[ "$term" == .*-wrap* ]] && {
term="${term#.}"
term="${term%-wrapped}"
term="${term%-wrap*}"
}
;;
esac