diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index cf127c2a..53dcdf6a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,11 +1,13 @@ +#!/bin/bash + outPath=./output rm -rf $outPath mkdir $outPath go build ../gogs.go -PLATFORM=`uname | cut -d _ -f 1` -if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then +PLATFORM=$(uname | cut -d _ -f 1) +if [ "$PLATFORM" = "MINGW32" ] || [ "$PLATFORM" = "MINGW64" ] || [ "$PLATFORM" = "CYGWIN" ]; then GOGS_EXE=gogs.exe else GOGS_EXE=gogs @@ -28,4 +30,4 @@ cp ../README_ZH.md $outPath/ cp start.bat $outPath/ cp start.sh $outPath/ cp ../wercker.yml $outPath/ -cp mysql.sql $outPath/
\ No newline at end of file +cp mysql.sql $outPath/ |