From fad7c6164eaac0f15ef45f6c61c1f13691a5e207 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 13 Apr 2023 19:39:06 +0200 Subject: [PATCH] scan_all.sh --- scan_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_all.sh b/scan_all.sh index 9cd2949..46228dc 100755 --- a/scan_all.sh +++ b/scan_all.sh @@ -7,7 +7,7 @@ mkdir -p "$DIR/site" for conf in "$DIR/confs/*.yaml" do - site="$(basename ${conf/.yaml/})" + site="basename ${conf/.yaml/}" php "$DIR/to_xml.php" $conf > "$DIR/site/$site.xml" php "$DIR/nmap_cmd.php" $conf | sh mv "$DIR/scans/.~$site.xml" "$DIR/scans/$site.xml"