From 92c5f94fe7fae17620ecb8895e287e9e66fb135c Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sun, 23 Aug 2020 15:17:54 +0800 Subject: shellcheck: fix warnings (#6274) * Remove outdated files * Fix warnings --- scripts/autoboot.sh | 2 -- scripts/build.sh | 33 --------------------------------- scripts/build_freebsd.sh | 27 --------------------------- scripts/build_linux64.sh | 27 --------------------------- scripts/init/openbsd/gogs | 1 + 5 files changed, 1 insertion(+), 89 deletions(-) delete mode 100755 scripts/autoboot.sh delete mode 100755 scripts/build.sh delete mode 100755 scripts/build_freebsd.sh delete mode 100755 scripts/build_linux64.sh (limited to 'scripts') diff --git a/scripts/autoboot.sh b/scripts/autoboot.sh deleted file mode 100755 index eb16d581..00000000 --- a/scripts/autoboot.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -su git -c "/home/git/gogs/scripts/gogs_supervisord.sh restart" diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index 53dcdf6a..00000000 --- a/scripts/build.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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 - GOGS_EXE=gogs.exe -else - GOGS_EXE=gogs -fi -chmod +x $GOGS_EXE -mv $GOGS_EXE $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -cp ../README_ZH.md $outPath/ -cp start.bat $outPath/ -cp start.sh $outPath/ -cp ../wercker.yml $outPath/ -cp mysql.sql $outPath/ diff --git a/scripts/build_freebsd.sh b/scripts/build_freebsd.sh deleted file mode 100755 index 9662f776..00000000 --- a/scripts/build_freebsd.sh +++ /dev/null @@ -1,27 +0,0 @@ -outPlattform=freebsd -outArch=amd64 -outPath=./output_${outPlattform}_$outArch - -rm -rf $outPath -mkdir $outPath - -CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go -chmod +x gogs -mv gogs $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -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 diff --git a/scripts/build_linux64.sh b/scripts/build_linux64.sh deleted file mode 100755 index a4e73936..00000000 --- a/scripts/build_linux64.sh +++ /dev/null @@ -1,27 +0,0 @@ -outPlattform=linux -outArch=amd64 -outPath=./output_${outPlattform}_$outArch - -rm -rf $outPath -mkdir $outPath - -CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build -buildmode=pie ../gogs.go -chmod +x gogs -mv gogs $outPath/ - -cp -r ../conf/ $outPath/conf/ -cp -r ../custom/ $outPath/custom/ -cp -r dockerfiles/ $outPath/dockerfiles/ -cp -r ../public/ $outPath/public/ -cp -r ../templates/ $outPath/templates/ -cp ../cert.pem $outPath/ -cp ../CONTRIBUTING.md $outPath/ -cp gogs_supervisord.sh $outPath/ -cp ../key.pem $outPath/ -cp ../LICENSE $outPath/ -cp ../README.md $outPath/ -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 diff --git a/scripts/init/openbsd/gogs b/scripts/init/openbsd/gogs index 95fcf169..7935d687 100755 --- a/scripts/init/openbsd/gogs +++ b/scripts/init/openbsd/gogs @@ -1,6 +1,7 @@ #!/bin/sh # # $OpenBSD$ +# shellcheck disable=SC2034,SC1091,SC2154,SC2086 daemon="/home/git/gogs/gogs" daemon_user="git" -- cgit v1.2.3