-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathci.sh
More file actions
24 lines (24 loc) · 678 Bytes
/
Copy pathci.sh
File metadata and controls
24 lines (24 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
############################################################
# Script to perform the "Continuous Integration" validation
############################################################
# Define the output file destination
OUT=/tmp/out-$RANDOM-$RANDOM.tmp
echo "[+] OUT set to file: $OUT."
# Execute the script
cd src/wpr
uv run main.py -d righettod.eu > $OUT
# Validate the execution
marker=$(grep -Fc "Reconnaissance finished" $OUT)
echo "[+] Marker occurences found into the OUT file: $marker."
echo "[+] OUT file content:"
cat $OUT
rm $OUT
if [ $marker -eq 0 ]
then
echo "[X] Validation failed!"
exit -1
else
echo "[V] Validation succeed."
exit 0
fi