Skip to content

Commit

Permalink
use [[ instead of [
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed Mar 14, 2024
1 parent d79a658 commit eaef286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks/update_readme_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ esac

# Check if the version in the README.md file is different from the latest version
current_version=$(grep -o "docker.io/camunda/keycloak:[0-9]\+" README.md | head -n 1 | cut -d ":" -f 2)
if [ "${current_version}" != "${latest_version}" ]; then
if [[ "${current_version}" != "${latest_version}" ]]; then
sed_universal -E "[email protected]/camunda/keycloak:[0-9][email protected]/camunda/keycloak:${latest_version}@g" README.md

echo "The docker image version in the README.md has been updated from docker.io/camunda/keycloak:${current_version} to docker.io/camunda/keycloak:${latest_version}" >&2
Expand Down

0 comments on commit eaef286

Please sign in to comment.