diff mbox

ybin succeeds but returns error code

Message ID 20090206001926.GA23273@kryten
State Accepted
Headers show

Commit Message

Anton Blanchard Feb. 6, 2009, 12:19 a.m. UTC
Hi,

On a System p box, ybin returns an error even though it succeeds:

# ybin 
# echo $?
1

The patch below fixes it:

# ybin 
# echo $?
0

Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff mbox

Patch

diff --git a/ybin/ybin b/ybin/ybin
index 379b94b..cf58db9 100755
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -1152,6 +1152,7 @@  raw_install()
     fi
     sync ; sync
     [ "$VERBOSE" = 1 ] && echo "$PRG: Installation successful"
+    return 0
 }
 
 ## make sure the first stage ofboot generator is compatible.