Skip to content

Commit

Permalink
Run shellfmt on new scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropombeiro committed Sep 22, 2024
1 parent 3bcdcba commit 406d886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions script/trigger_inotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ file=$5
if [ -z "${user}" ] || [ -z "${password}" ] || [ -z "${address}" ] || [ -z "${filepath}" ]; then
echo "SSH environment variables not set, skipping inotify trigger."
else
if sshpass -p "$password" ssh -o StrictHostKeyChecking=no $user@$address "sed \"\" -i $filepath/$file"; then
if sshpass -p "$password" ssh -o StrictHostKeyChecking=no "$user"@"$address" "sed \"\" -i $filepath/$file"; then
echo "trigger inotify successful"
else
echo "trigger inotify failed"
exit 1
fi
fi

2 changes: 1 addition & 1 deletion script/trigger_telegram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ MESSAGE="Scanner: $1"
ENCODED_MESSAGE=$(echo "$MESSAGE" | jq -sRr @uri)

# Send the message using wget
wget -qO- --post-data="chat_id=$CHAT_ID&text=$ENCODED_MESSAGE" "https://api.telegram.org/$TOKEN/sendMessage" > /dev/null
wget -qO- --post-data="chat_id=$CHAT_ID&text=$ENCODED_MESSAGE" "https://api.telegram.org/$TOKEN/sendMessage" >/dev/null

0 comments on commit 406d886

Please sign in to comment.