Skip to content

Instantly share code, notes, and snippets.

@tkafka
Last active September 22, 2021 18:21
Show Gist options
  • Save tkafka/0fa3830746174dc7727fabb04b907008 to your computer and use it in GitHub Desktop.
Save tkafka/0fa3830746174dc7727fabb04b907008 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ "${ENABLE_PREVIEWS}" = "YES" ]; then
echo "Previews enabled, quitting to prevent 'preview paused'."
exit 0;
fi
# ... rest of the script ...
# Success? Clear the exit code that might have been left here by a last command of the script.
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment