Skip to content

Instantly share code, notes, and snippets.

@Gowiem
Last active August 14, 2020 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gowiem/5e4842c7080089e1e48d57f0ac52f7de to your computer and use it in GitHub Desktop.
Save Gowiem/5e4842c7080089e1e48d57f0ac52f7de to your computer and use it in GitHub Desktop.
#!/bin/zsh
if [ ! -f README.yaml ]; then
echo "Too old."
exit 0
fi
if [ ! -f versions.tf ]; then
echo "Too old."
exit 0
fi
# 0.16.0 => 0.17.0
gsed -i -e 's/terraform-null-label.git?ref=tags\/0.16.0/terraform-null-label.git?ref=tags\/0.17.0/' **/*.tf
# 0.15.0 => 0.17.0
gsed -i -e 's/terraform-null-label.git?ref=tags\/0.15.0/terraform-null-label.git?ref=tags\/0.17.0/' **/*.tf
# 0.14.1 => 0.17.0
gsed -i -e 's/terraform-null-label.git?ref=tags\/0.14.1/terraform-null-label.git?ref=tags\/0.17.0/' **/*.tf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment