From 02bda3f7b1c5c13b1be5f258da82b9dcb7963df0 Mon Sep 17 00:00:00 2001 From: Anouar Ben Saad Date: Fri, 10 Jun 2022 19:16:56 +0100 Subject: [PATCH] FIX: IF NOT EXIST DIR #90 --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 6384e3c..697f967 100755 --- a/install.sh +++ b/install.sh @@ -80,7 +80,9 @@ function debianOS(){ echo -e "#!/bin/bash python3 /usr/share/vulnx/vulnx.py" '${1+"$@"}' > "vulnx"; chmod +x "vulnx"; + if [[ ! -d "/usr/share/vulnx" ]];then sudo mkdir "/usr/share/vulnx" + fi sudo cp "install.sh" "/usr/share/vulnx" sudo cp "update.sh" "/usr/share/vulnx" sudo cp -r "./common" "/usr/share/vulnx/"