mirror of
https://github.com/rancher/os.git
synced 2025-09-04 00:04:25 +00:00
gofmt changes
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ ! -x "$(which go)" && -x /usr/local/go/bin/go ]]; then
|
||||
PATH=/usr/local/go/bin:${PATH}
|
||||
fi
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -s -l)
|
||||
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -l)
|
||||
for i in $result; do
|
||||
echo $i
|
||||
done
|
||||
|
@@ -18,7 +18,6 @@ var (
|
||||
letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
)
|
||||
|
||||
|
||||
func TLSConf() {
|
||||
name := "rancher"
|
||||
bits := 2048
|
||||
@@ -109,7 +108,6 @@ func TLSConf() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
func mountProc() error {
|
||||
if _, err := os.Stat("/proc/self/mountinfo"); os.IsNotExist(err) {
|
||||
if _, err := os.Stat("/proc"); os.IsNotExist(err) {
|
||||
|
Reference in New Issue
Block a user