gCubeActions/16-01-2023-grepkeys/greptoken.sh

8 lines
240 B
Bash
Raw Permalink Normal View History

2023-01-16 16:48:08 +01:00
#!/usr/bin/env bash
2023-01-19 09:50:45 +01:00
out=`find . -type f -exec grep '843339462' /dev/null {} + || echo 'empty'`
2023-01-18 10:07:40 +01:00
if [[ ["${out}" != "empty"] && "$(grep '\.java' <<< ${out})" ]]; then
2023-01-16 16:48:08 +01:00
echo "${out}"
2023-01-18 10:07:40 +01:00
echo "token found"
2023-01-16 16:48:08 +01:00
else
echo "token not found"
2023-01-18 10:07:40 +01:00
fi