mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-27 19:50:23 +00:00
Make gparted shell wrapper report exit status from gpartedbin
gparted shell wrapper always exits with a 0 status even if gpartedbin fails. For example make gpartedbin fail with a non-zero exit status like this: $ (unset DISPLAY; unset XAUTHORITY; /usr/sbin/gpartedbin) (gpartedbin:3936): Gtk-WARNING **: 16:36:06.263: cannot open display: $ echo $? 1 However the gparted shell wrapper instead exits with successful status 0: $ (unset DISPLAY; unset XAUTHORITY; gparted) (gpartedbin:4282): Gtk-WARNING **: 16:39:23.514: cannot open display: $ echo $? 0 Fix this.
This commit is contained in:
parent
25b7382d03
commit
2e927d4bc4
|
@ -219,6 +219,7 @@ elif test "x$HAVE_HAL_LOCK" = "xyes"; then
|
||||||
else
|
else
|
||||||
$BASE_CMD
|
$BASE_CMD
|
||||||
fi
|
fi
|
||||||
|
status=$?
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clear any temporary override udev rules used to stop udev automatically
|
# Clear any temporary override udev rules used to stop udev automatically
|
||||||
|
@ -234,3 +235,5 @@ done
|
||||||
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
|
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
|
||||||
systemctl --runtime unmask --quiet -- $MOUNTLIST
|
systemctl --runtime unmask --quiet -- $MOUNTLIST
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit $status
|
||||||
|
|
Loading…
Reference in a new issue