瀏覽代碼

Removed panic for unable to install samba

TC pushbot 5 4 年之前
父節點
當前提交
39c5e8fa5e
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 0 0
      .disabled
  2. 2 2
      build.sh
  3. 1 1
      main.go

+ 0 - 0
.disabled


+ 2 - 2
build.sh

@@ -1,7 +1,7 @@
 # /bin/sh
 # /bin/sh
 echo "Building darwin"
 echo "Building darwin"
-GOOS=darwin GOARCH=amd64 go build
-mv "${PWD##*/}" "${PWD##*/}_darwin_amd64"
+#GOOS=darwin GOARCH=amd64 go build
+#mv "${PWD##*/}" "${PWD##*/}_darwin_amd64"
 
 
 echo "Building linux"
 echo "Building linux"
 GOOS=linux GOARCH=amd64 go build
 GOOS=linux GOARCH=amd64 go build

+ 1 - 1
main.go

@@ -72,7 +72,7 @@ func main() {
 	pm := apt.NewPackageManager(true)
 	pm := apt.NewPackageManager(true)
 	err := pm.InstallIfNotExists("samba", true)
 	err := pm.InstallIfNotExists("samba", true)
 	if err != nil {
 	if err != nil {
-		panic(err)
+		log.Println("Unable to install samba on this host! Assume already exists")
 	}
 	}
 
 
 	//Do a blocking loop
 	//Do a blocking loop