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