diff --git a/scratch.sh b/scratch.sh index b458945..2a89c9d 100644 --- a/scratch.sh +++ b/scratch.sh @@ -8,6 +8,8 @@ if ! response=$(curl -s -H "User-Agent: Bash-Passphrase-Audit-Script" "$api_url" exit 3 fi -# echo -e "$response" -match=$(echo -e "$response" | grep -q -i "^$suffix") -echo "$match" \ No newline at end of file +if $(echo -e "$response" | grep -q -i "^$suffix"); then + echo "match!" +else + echo "no match" +fi \ No newline at end of file