Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) (#2596)

* Feature: Use Verbose Mode for all Scripts (removed &>/dev/null)

* Update crafty-controller.sh
This commit is contained in:
CanbiZ 2025-02-24 12:49:16 +01:00 committed by GitHub
parent 20cc7572a5
commit ece3ad2b13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
165 changed files with 475 additions and 475 deletions

View file

@ -35,7 +35,7 @@ function update_script() {
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
if ! command -v npm >/dev/null 2>&1; then
msg_info "Installing NPM"
apt-get install -y npm >/dev/null 2>&1
$STD apt-get install -y npm
msg_ok "Installed NPM"
fi
fi
@ -44,7 +44,7 @@ function update_script() {
msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}"
npm install -g --unsafe-perm node-red &>/dev/null
$STD npm install -g --unsafe-perm node-red
msg_ok "Updated ${APP}"
msg_info "Starting ${APP}"
@ -84,7 +84,7 @@ function update_script() {
msg_info "Installing ${THEME} Theme"
cd /root/.node-red
sed -i 's|// theme: ".*",|theme: "",|g' /root/.node-red/settings.js
npm install @node-red-contrib-themes/theme-collection &>/dev/null
$STD npm install @node-red-contrib-themes/theme-collection
sed -i "{s/theme: ".*"/theme: '${THEME}',/g}" /root/.node-red/settings.js
systemctl restart nodered
msg_ok "Installed ${THEME} Theme"