Last active
August 14, 2020 00:36
-
-
Save Gowiem/5e4842c7080089e1e48d57f0ac52f7de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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