From 6a6587d3e3005b35c8f1a25acbb63abbcbc8f783 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 24 Jan 2020 12:57:57 +1100 Subject: [PATCH] appveyor: force locale to make grep work --- appveyor-build.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appveyor-build.bat b/appveyor-build.bat index 75df5e77d..f2c92cb02 100644 --- a/appveyor-build.bat +++ b/appveyor-build.bat @@ -87,6 +87,10 @@ REM If this was a tagged build, upload if "%APPVEYOR_REPO_TAG%"=="true" GOTO upload REM Else, if this is a continuous build, check if this commit is the most recent + +REM Force locale to UTF-8 or grep -P fails +set LC_ALL=en_US.UTF-8 + curl -H "Authorization: token %GITHUB_TOKEN%" https://api.github.com/repos/olive-editor/olive/commits/master > repoinfo.txt grep -Po '(?^<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repoinfo.txt > latestcommit.txt set /p REMOTEHASH= < latestcommit.txt @@ -96,7 +100,7 @@ REM The previous if statements failed, skip to the end GOTO end :upload -wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh +curl https://github.com/probonopd/uploadtool/raw/master/upload.sh > upload.sh bash upload.sh Olive*.zip bash upload.sh Olive*.exe