Skip to content

Commit

Permalink
fix curl regex
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfraiture committed Oct 18, 2024
1 parent a7c9d68 commit c1b0da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ 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=$($(which curl) -s "https://www.zaproxy.org/download/" | grep -G -o "ZAP \d+(\.\d+)+" | head -1 | cut -d' ' -f2)
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/
Expand Down

0 comments on commit c1b0da2

Please sign in to comment.