Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e66c2926
Unverified
Commit
e66c2926
authored
Nov 19, 2024
by
frob
Committed by
GitHub
Nov 19, 2024
Browse files
Better error suppresion when getting terminal colours (#7739)
Co-authored-by:
Richard Lyons
<
frob@cloudstaff.com
>
parent
712d63c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/install.sh
scripts/install.sh
+2
-2
No files found.
scripts/install.sh
View file @
e66c2926
...
...
@@ -4,8 +4,8 @@
set
-eu
red
=
"
$(
(
/usr/bin/tput bold
;
/usr/bin/tput setaf 1
;
:
)
2>&-
)
"
plain
=
"
$(
(
/usr/bin/tput sgr0
;
:
)
2>&-
)
"
red
=
"
$(
(
/usr/bin/tput bold
||
:
;
/usr/bin/tput setaf 1
||
:
)
2>&-
)
"
plain
=
"
$(
(
/usr/bin/tput sgr0
||
:
)
2>&-
)
"
status
()
{
echo
">>>
$*
"
>
&2
;
}
error
()
{
echo
"
${
red
}
ERROR:
${
plain
}
$*
"
;
exit
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment