"You can only be sure of what you're running if you download it first, examine it, then run what you downloaded."
What if, before "run what you downloaded", first perform a dry run and observe it while it is running.
set -x
curl https://example.com/setup.sh | bash -n
set +x
-x Execution trace-n Read commands but do not execute them