Skip to content

Commit

Permalink
Add link to source file
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 6, 2023
1 parent f3f9371 commit 0dc4a91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/scripts/watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do

# Check if the file contains the string "WATCHER_URL" and is therefore a watcher file
cat "$file" | grep 'WATCHER_URL' >> /dev/null || continue


# Get the JSON from the first line of the file
HEAD=$(cat "$file" | grep 'WATCHER_URL')
Expand All @@ -26,15 +25,14 @@ find $WATCHER_PATH -type f -print0 | while IFS= read -r -d '' file; do

# Check if the hashes are equal
if [ "$WATCHER_HASH" == "$CALLED_HASH" ]; then
echo "Both strings are equal."
echo "Both hashes are equal."
else
echo "Strings are not equal."
echo "Hashes are not equal."

FILE_CONTENT=$(curl -sl $WATCHER_URL)

# Check if $WATCHER_CONTAINS contains the string "null" and is therefore empty or not set
if [[ $WATCHER_CONTAINS == "null" ]]; then
echo "No contain set"
echo 1 > error.txt
fi
# Check if $WATCHER_CONTAINS contains the string $WATCHER_CONTAINS and if not call the Slack webhook
Expand Down

0 comments on commit 0dc4a91

Please sign in to comment.