Skip to content

Commit

Permalink
Fix g breaking on missing $TERM var in non-interactive systems
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmaric committed Mar 17, 2021
1 parent b5792e5 commit 378228f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Upgrade shellcheck from v0.7.0 to v0.7.1 and fix new lint errors
- Upgrade shfmt from v3.0.0 to v3.2.4, no format changes introduced
- Introduce a Github Actions workflow file with lint only for now
- Fix g breaking on missing $TERM var in non-interactive systems

## 0.8.0 - 2019-12-24

Expand Down
2 changes: 1 addition & 1 deletion bin/g
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [ ! -t 1 ]; then
NO_COLOR=true
fi

case $TERM in
case ${TERM:-""} in
"xterm"*) ;;
"screen"*) ;;
*) NO_COLOR=true ;;
Expand Down

0 comments on commit 378228f

Please sign in to comment.