diff --git a/hotpocket.sh b/hotpocket.sh index 5fc81e2..5e40b5d 100755 --- a/hotpocket.sh +++ b/hotpocket.sh @@ -118,7 +118,7 @@ ACCESS_TOKEN="$(jq '.access_token' -r <<< "$CONFIG")" || die "main: Failed to re USER_ID="$(jq '.user_id' -r <<< "$CONFIG")" || die "main: Failed to read user_id!" TOPICS="$(yq -c . "$SCHEMA_DIR/topics.yaml")" || die "main: Failed to load topics!" -echo "main: This is a dry run, any actions will fail!" 1>&2 +[ -n "$DRY_RUN" ] && echo "main: This is a dry run, any actions will fail!" 1>&2 readonly CONFIG readonly ACTIONS