Skip to content

Commit

Permalink
Update notify.sh (#11)
Browse files Browse the repository at this point in the history
test if this will remove unwanted single quotes
  • Loading branch information
Its4Nik authored Sep 22, 2024
1 parent 998239b commit 45a05bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ CONTAINER_NAME=$3 # Container Name
HOST=$4 # Host Name
STATE=$5 # Current State

ADD_MESSAGE="${ADD_MESSAGE:-'🆕 Container Added: $CONTAINER_NAME ($CONTAINER_ID) on $HOST'}"
REMOVE_MESSAGE="${REMOVE_MESSAGE:-'🚫 Container Removed: $CONTAINER_NAME ($CONTAINER_ID) on $HOST'}"
EXIT_MESSAGE="${EXIT_MESSAGE:-'❌ Container Exited: $CONTAINER_NAME ($CONTAINER_ID) on $HOST'}"
ANY_MESSAGE="${ANY_MESSAGE:-'⚠️ Container State Changed: $CONTAINER_NAME ($CONTAINER_ID) on $HOST - New State: $STATE'}"
ADD_MESSAGE="${ADD_MESSAGE:-🆕 Container Added: $CONTAINER_NAME ($CONTAINER_ID) on $HOST}"
REMOVE_MESSAGE="${REMOVE_MESSAGE:-🚫 Container Removed: $CONTAINER_NAME ($CONTAINER_ID) on $HOST}"
EXIT_MESSAGE="${EXIT_MESSAGE:-❌ Container Exited: $CONTAINER_NAME ($CONTAINER_ID) on $HOST}"
ANY_MESSAGE="${ANY_MESSAGE:-⚠️ Container State Changed: $CONTAINER_NAME ($CONTAINER_ID) on $HOST - New State: $STATE}"

case "$NOTIFY_TYPE" in
ADD)
Expand Down

0 comments on commit 45a05bf

Please sign in to comment.