ybin succeeds but returns error code
authorAnton Blanchard <anton@samba.org>
Thu, 5 Feb 2009 14:19:26 +0000 (14:19 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Fri, 13 Feb 2009 00:29:33 +0000 (11:29 +1100)
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>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
ybin/ybin

index 379b94b..cf58db9 100755 (executable)
--- 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.