diff --git a/scripts/update_build_number.bat b/scripts/update_build_number.bat index 27e9ca2c..451918b6 100644 --- a/scripts/update_build_number.bat +++ b/scripts/update_build_number.bat @@ -3,4 +3,4 @@ for /f %%i in ('git rev-list --count HEAD') do set commit_count=%%i :: Update the pubspec.yaml file with the new build number -powershell -Command "(gc ../pubspec.yaml) -replace 'version: (.*)\+.*', 'version: $1+%commit_count%' | Out-File -encoding ASCII ../pubspec.yaml" +powershell -Command "(gc ../pubspec.yaml) -replace 'version: (.*)\+.*', 'version: $1+%commit_count%' | Out-File -encoding ASCII ./pubspec.yaml" diff --git a/scripts/update_build_number.sh b/scripts/update_build_number.sh index ffd70647..9682d845 100755 --- a/scripts/update_build_number.sh +++ b/scripts/update_build_number.sh @@ -4,4 +4,4 @@ commit_count=$(git rev-list --count HEAD) # Update the pubspec.yaml file with the new build number -sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" ../pubspec.yaml \ No newline at end of file +sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" ./pubspec.yaml \ No newline at end of file