On Thu, 14 Oct 2004 15:04:15 -0500, Ben Kelley blk6224@gmail.com wrote:
$? is the exit code of the previous command
# attempt to remount the RW mount point as RW; else abort $MOUNT -o remount,rw $MOUNT_DEVICE $SNAPSHOT_RW ; if (( $? )); then { $ECHO "snapshot: could not remount $SNAPSHOT_RW readwrite"; exit; } fi;
So in this example if failed it would echo "snapshot: ...", or else go to next set of code. Correct?
Thanks,
-- dj_goku -www.djgoku.com- -www.tektronic.org-
On Thu, 14 Oct 2004 15:16:31 -0500, Ben Kelley blk6224@gmail.com wrote:
So in this example if failed it would echo "snapshot: ...", or else go to next set of code. Correct?
Correct
Ok, thanks.