Skip to content

Commit 1b98acb

Browse files
committed
fix: 在 Pentest_ccupp_Install 函数中添加目录创建步骤,以确保成功克隆 ccupp 仓库
1 parent d87ca96 commit 1b98acb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

f8x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3794,7 +3794,7 @@ Pentest_ccupp_Install(){
37943794
then
37953795
Echo_ALERT "$name installed"
37963796
else
3797-
$Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/WangYihang/ccupp.git $dir > /dev/null 2>&1 && Echo_INFOR "Downloaded $name in the $dir" || Echo_ERROR2
3797+
mkdir -p $dir && $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/WangYihang/ccupp.git $dir > /dev/null 2>&1 && Echo_INFOR "Downloaded $name in the $dir" || Echo_ERROR2
37983798
cd $dir && rm -rf benchmark_data benchmark-site && $Proxy_OK pipx install . > /dev/null 2>&1
37993799
which ccupp > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3
38003800
fi

0 commit comments

Comments
 (0)