added binary to create bash completion

also do not bail out, when configs can't be read, still the
This commit is contained in:
Christian Goll
2021-07-16 14:32:39 +02:00
parent 75c0e66f30
commit b27951b59f
6 changed files with 42 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
package warewulfconf
import (
"os"
"github.com/hpcng/warewulf/internal/pkg/util"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
@@ -52,6 +51,7 @@ func init() {
//TODO: Check to make sure nodes.conf is found
if util.IsFile(ConfigFile) == false {
wwlog.Printf(wwlog.ERROR, "Configuration file not found: %s\n", ConfigFile)
os.Exit(1)
// fail silently as this also called by bash_completion
return
}
}