Skip to content

Instantly share code, notes, and snippets.

@therne
Created February 11, 2019 11:02
Show Gist options
  • Save therne/ac169d76d07fddf684d092540106d2f5 to your computer and use it in GitHub Desktop.
Save therne/ac169d76d07fddf684d092540106d2f5 to your computer and use it in GitHub Desktop.
#!/bin/bash
aws ecr describe-repositories --repository-names $1 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo Creating $1
aws ecr create-repository --repository-name $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment