Skip to content

Instantly share code, notes, and snippets.

@udondan
Last active July 24, 2020 06:48
Show Gist options
  • Save udondan/4aa6293db79620a2cd0f4ed3625dbd74 to your computer and use it in GitHub Desktop.
Save udondan/4aa6293db79620a2cd0f4ed3625dbd74 to your computer and use it in GitHub Desktop.
Disabling fancy AWS CDK output
#!/bin/bash
if [[ "$1" != "deploy" ]]; then
/usr/local/bin/cdk "$@"
exit
fi
CDK_LOG=$(mktemp)
tail -f "${CDK_LOG}" &
PID=$!
/usr/local/bin/cdk "$@" &> "${CDK_LOG}"
kill "${PID}" &> /dev/null
@robertd
Copy link

robertd commented Jul 13, 2020

How would you use this with nvm?

@udondan
Copy link
Author

udondan commented Jul 13, 2020

Don't know. Never used that. Probably you need to add some nvm use etc after line 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment