Skip to content

Commit 57be00c

Browse files
committed
Don't run tput if $TERM is not set (fixes #34)
1 parent cf67896 commit 57be00c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linuxdeploy-plugin-conda.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ show_usage() {
2424
}
2525

2626
log() {
27-
tput setaf 3
28-
tput bold
27+
[[ "$TERM" != "" ]] && tput setaf 3
28+
[[ "$TERM" != "" ]] && tput bold
2929
echo -*- "$@"
30-
tput sgr0
30+
[[ "$TERM" != "" ]] && tput sgr0
3131
}
3232

3333
APPDIR=

0 commit comments

Comments
 (0)