diff --git a/bump.sh b/bump.sh index d27b98c..06de22b 100755 --- a/bump.sh +++ b/bump.sh @@ -36,8 +36,15 @@ else fi # Bump version in dockerc -sed -i "3 s/\# DockerC.*/\# DockerC (v$VERSION)/g" dockerc -sed -i "9 s/VERSION=.*/VERSION=\"$VERSION\"/g" dockerc +if [ "$(uname)" = "Darwin" ]; then + # MacOS + sed -i "" "3 s/\# DockerC.*/\# DockerC (v$VERSION)/g" dockerc + sed -i "" "9 s/VERSION=.*/VERSION=\"$VERSION\"/g" dockerc +else + # Linux + sed -i "3 s/\# DockerC.*/\# DockerC (v$VERSION)/g" dockerc + sed -i "9 s/VERSION=.*/VERSION=\"$VERSION\"/g" dockerc +fi if [ "$HAS_GIT" = true ]; then # Commit changes