summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-01-31 18:24:31 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-01-31 18:24:31 +0100
commit56a93ee77006499b869b2fa067b72b0171710c61 (patch)
treeb80326c0d47bd06e97d2886c0cea9e5537ad670f /utils/searx.sh
parent1e3d2f680077bcfcb3201821df175fcf986c5f7a (diff)
downloadsearxng-56a93ee77006499b869b2fa067b72b0171710c61.tar.gz
searxng-56a93ee77006499b869b2fa067b72b0171710c61.zip
utils/lib.sh: colorize messages
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index 359ae7124..ad8515d4f 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -445,9 +445,9 @@ deactivate_service() {
uWSGI_restart
}
-interactive_shell() {
- echo "// exit with CTRL-D"
- sudo -H -u "${SERVICE_USER}" -i
+interactive_shell(){
+ echo "// exit with ${_BCyan}CTRL-D${_creset}"
+ sudo -H -u ${SERVICE_USER} -i
}
git_diff() {
@@ -534,7 +534,9 @@ EOF
echo
systemctl --no-pager -l status uwsgi.service
echo
- read -r -s -n1 -t 2 -p "// use CTRL-C to stop monitoring the log"
+ # shellcheck disable=SC2059
+ printf "// use ${_BCyan}CTRL-C${_creset} to stop monitoring the log"
+ read -r -s -n1 -t 2
echo
while true; do
trap break 2