usbinstall.sh: fix check for DBUS_USBINSTALL when variable is unset

This commit is contained in:
Silvan Calarco 2012-01-08 16:59:15 +01:00
parent 6a71d1f7d4
commit 16679d4071

View File

@ -65,7 +65,7 @@ function dbus_properties_get_bool() {
# Arg 1: value% # Arg 1: value%
set_pbar() set_pbar()
{ {
if [ $DBUS_USBINSTALL == 1 ]; then if [ "$DBUS_USBINSTALL" == "1" ]; then
dbus-send --print-reply --session --dest=org.openmamba.usbinstall /org/openmamba/usbinstall org.openmamba.usbinstall.Set_progressBar int32:$1 dbus-send --print-reply --session --dest=org.openmamba.usbinstall /org/openmamba/usbinstall org.openmamba.usbinstall.Set_progressBar int32:$1
fi fi
} }
@ -74,7 +74,7 @@ set_pbar()
# Arg 1: string # Arg 1: string
set_status() set_status()
{ {
if [ $DBUS_USBINSTALL == 1 ]; then if [ "$DBUS_USBINSTALL" == "1" ]; then
dbus-send --print-reply --session --dest=org.openmamba.usbinstall /org/openmamba/usbinstall org.openmamba.usbinstall.Set_description "string:$1" dbus-send --print-reply --session --dest=org.openmamba.usbinstall /org/openmamba/usbinstall org.openmamba.usbinstall.Set_description "string:$1"
fi fi
} }