Files
spring-security-samples/sync-boot-version.sh
Marcus Da Coregio 33052562bc Fix sync scripts
Closes gh-134
2023-06-21 10:52:50 -03:00

10 lines
289 B
Bash
Executable File

#!/bin/bash
export BOOT_VERSION=$1
if [[ "$BOOT_VERSION" == "" ]]; then
echo "Missing boot-version. Usage: sync-boot-version.sh <boot-version>"
exit 1
fi
find . -mindepth 2 -name build.gradle | xargs sed -i '' -E "s/(id 'org.springframework.boot' version ')[^']+'/\1$BOOT_VERSION'/"