diff --git a/install b/install index a6c8ca40be..62de5f472a 100755 --- a/install +++ b/install @@ -138,8 +138,8 @@ install_linux() { sudo pacman -S ruby ruby-rdoc fi elif [ "${Distro}" = "Alpine" ]; then - apk update - apk add curl git build-base openssl readline-dev zlib zlib-dev libressl-dev yaml-dev sqlite-dev sqlite libxml2-dev libxslt-dev autoconf libc6-compat ncurses5 automake libtool bison nodejs + sudo apk update + sudo apk add curl git build-base openssl readline-dev zlib zlib-dev libressl-dev yaml-dev sqlite-dev sqlite libxml2-dev libxslt-dev autoconf libc6-compat ncurses5 automake libtool bison nodejs fi } diff --git a/tools/bump-version.sh b/tools/bump-version.sh index 2077a5726d..934b810c13 100755 --- a/tools/bump-version.sh +++ b/tools/bump-version.sh @@ -13,10 +13,17 @@ fi echo "Updating version ${1} to ${2}" git checkout -b "release/${2}" -sed -i '' -e "s/$1/$2/g" VERSION -sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package.json -sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package-lock.json -sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" config.yaml +if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' -e "s/$1/$2/g" VERSION + sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package.json + sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package-lock.json + sed -i '' -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" config.yaml +else + sed -i -e "s/$1/$2/g" VERSION + sed -i -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package.json + sed -i -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" package-lock.json + sed -i -e "s/\"version\": \"$1\"/\"version\": \"$2\"/g" config.yaml +fi git add VERSION package.json package-lock.json config.yaml git commit -m "Version bump ${2}"