Browse Source

term: Fix wrapper scripts in NixOS. Thanks Tdeo.

Dylan Araps 6 years ago
parent
commit
2caec13bf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      neofetch

+ 2 - 2
neofetch

@@ -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