refactor(cyberchef): use -fsSL, update log messages and remove whitespace

This commit is contained in:
ethan
2026-04-28 21:28:58 +02:00
parent b7f769d1f4
commit bfddb2a59c

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: ethan-hgwr
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
@@ -30,24 +30,23 @@ function update_script() {
fi
if check_for_gh_release "cyberchef" "gchq/CyberChef"; then
msg_info "Stopping $APP"
msg_info "Stopping Service"
systemctl stop caddy
msg_ok "Stopped $APP"
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cyberchef" "gchq/CyberChef" "tarball"
msg_info "Building $APP (Patience)"
msg_info "Building CyberChef"
cd /opt/cyberchef
$STD npm ci --ignore-scripts
$STD npm run postinstall
$STD npm run build
msg_ok "Built $APP"
msg_ok "Built CyberChef"
msg_info "Starting $APP"
msg_info "Starting Service"
systemctl start caddy
msg_ok "Started $APP"
msg_ok "Updated $APP Successfully"
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
exit
}