Merge pull request #167 from cheah/fix-comparison
Fix value comparison in phh-prop-handler.sh
This commit is contained in:
commit
9e60c42682
@ -48,7 +48,7 @@ xiaomi_toggle_dt2w_event_node() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" == "persist.sys.phh.xiaomi.dt2w" ]; then
|
if [ "$1" == "persist.sys.phh.xiaomi.dt2w" ]; then
|
||||||
if [[ "$prop_value" -ne 0 && "$prop_value" -ne 1 ]]; then
|
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ if [ "$1" == "persist.sys.phh.xiaomi.dt2w" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "persist.sys.phh.oppo.dt2w" ]; then
|
if [ "$1" == "persist.sys.phh.oppo.dt2w" ]; then
|
||||||
if [[ "$prop_value" -ne 0 && "$prop_value" -ne 1 ]]; then
|
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ if [ "$1" == "persist.sys.phh.oppo.dt2w" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "persist.sys.phh.oppo.gaming_mode" ]; then
|
if [ "$1" == "persist.sys.phh.oppo.gaming_mode" ]; then
|
||||||
if [[ "$prop_value" -ne 0 && "$prop_value" -ne 1 ]]; then
|
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ if [ "$1" == "persist.sys.phh.oppo.gaming_mode" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "persist.sys.phh.oppo.usbotg" ]; then
|
if [ "$1" == "persist.sys.phh.oppo.usbotg" ]; then
|
||||||
if [[ "$prop_value" -ne 0 && "$prop_value" -ne 1 ]]; then
|
if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user