mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
Fix check in CMakeColors.
This commit is contained in:
parent
36e8ed5f46
commit
efdf4cb490
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
# [ -t 2 ] tests whether stderr is interactive.
|
# [ -t 2 ] tests whether stderr is interactive.
|
||||||
# The negation '!' is because for POSIX shells, 0 is true and 1 is false.
|
# The negation '!' is because for POSIX shells, 0 is true and 1 is false.
|
||||||
execute_process(COMMAND [ ! -t 2 ] RESULT_VARIABLE IS_STDERR_INTERACTIVE)
|
execute_process(COMMAND "[ ! -t 2 ]" RESULT_VARIABLE IS_STDERR_INTERACTIVE)
|
||||||
if(IS_STDERR_INTERACTIVE)
|
if(IS_STDERR_INTERACTIVE)
|
||||||
string(ASCII 27 Esc)
|
string(ASCII 27 Esc)
|
||||||
set(ColorReset "${Esc}[m")
|
set(ColorReset "${Esc}[m")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue