mirror of
https://github.com/clearlinux/rkt.git
synced 2026-11-26 14:10:24 +00:00
Merge pull request #581 from yifan-gu/fix_prepare
Fix return value for 'rkt prepare'.
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ func runPrepare(args []string) (exit int) {
|
||||
|
||||
ds, err := cas.NewStore(globalFlags.Dir)
|
||||
if err != nil {
|
||||
stderr("prepare: cannot open store: %v")
|
||||
stderr("prepare: cannot open store: %v", err)
|
||||
return 1
|
||||
}
|
||||
ks := getKeystore()
|
||||
@@ -115,5 +115,5 @@ func runPrepare(args []string) (exit int) {
|
||||
os.Stdout = origStdout // restore output in case of --quiet
|
||||
stdout("%s", c.uuid.String())
|
||||
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user