Skip to content

Commit 0ccac2f

Browse files
committed
Improve reliability of _isterm (CC #34)
1 parent 4125e54 commit 0ccac2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linuxdeploy-plugin-conda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ show_usage() {
2323
echo " ARCH=\"x86_64\" (further supported values: i686)"
2424
}
2525

26-
isterm() {
27-
return [[ "$TERM" != "" ]];
26+
_isterm() {
27+
tty -s && [[ "$TERM" != "" ]] && tput colors &>/dev/null
2828
}
2929

3030
log() {

0 commit comments

Comments
 (0)