diff --git a/Makefile b/Makefile index 9282280..0b216f8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # ------------------ -# ANSIBLE-MAKEFILE v0.14.0 +# ANSIBLE-MAKEFILE v0.15.0 # Run ansible commands with ease # ------------------ # diff --git a/VERSION b/VERSION index a803cc2..a551051 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.14.0 +0.15.0 diff --git a/ansible-make b/ansible-make index 3b915e6..e116e8c 100755 --- a/ansible-make +++ b/ansible-make @@ -1,6 +1,6 @@ #!/usr/bin/env bash # ------------------ -# ANSIBLE-MAKEFILE v0.14.0 +# ANSIBLE-MAKEFILE v0.15.0 # Run ansible commands with ease # ------------------ # diff --git a/bump.sh b/bump.sh new file mode 100755 index 0000000..482d02f --- /dev/null +++ b/bump.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -eo pipefail + +current_version=$(cat VERSION) +bump_version=${1} + +if [ -n "${bump_version}" ] +then + echo "Bumping version from ${current_version} to ${bump_version}..." + find . -maxdepth 1 -type f -exec sed -i "s|${current_version}|${bump_version}|" {} \; + printf "\\033[32mDONE!\\033[0m ✔️\\n" + echo "Bye 👋" +else + echo "Usage: ${0} " + exit 1 +fi