1
0
Fork 0

Exit if on-disk-path is set, but on-disk is not

master
Philip O'Toole 3 years ago
parent 7662eafdc0
commit 1ea29e108a

@ -146,6 +146,11 @@ func main() {
os.Exit(0)
}
if onDiskPath != "" && !onDisk {
fmt.Fprintf(os.Stderr, "fatal: on-disk-path is set, but on-disk is not\n")
os.Exit(1)
}
// Ensure the data path is set.
if flag.NArg() < 1 {
fmt.Fprintf(os.Stderr, "fatal: no data directory set\n")

Loading…
Cancel
Save