From f61a6d1a791d14e3bc73bcfddb3b22dbd3585ab4 Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 19 Oct 2024 00:43:28 +0200 Subject: [PATCH] clean --- sources/install/package_web.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index b805b8f3c..6d43bbb85 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -897,12 +897,12 @@ function install_postman() { function install_zap() { colorecho "Installing ZAP" - mkdir /opt/tools/ZAP - # using $(which curl) to avoid having additional logs put in curl output being executed because of catch_and_retry zap_version=$(curl -s "https://www.zaproxy.org/download/" | grep -E -o "ZAP [0-9]+(\.[0-9]+)+" | head -1 | cut -d' ' -f2) wget "https://github.com/zaproxy/zaproxy/releases/download/v${zap_version}/ZAP_${zap_version}_Linux.tar.gz" -O /tmp/zap.tar.gz - tar -xf /tmp/zap.tar.gz -C /opt/tools/ - mv /opt/tools/ZAP_${zap_version} /opt/tools/ZAP/ + tar -xf /tmp/zap.tar.gz -C /tmp/ + mv /tmp/ZAP_${zap_version} /opt/tools/ZAP/ + rm -rf /tmp/ZAP_${zap_version} + rm /tmp/zap.tar.gz add-aliases zap add-history zap add-test-command "which zap"