From af078c55f03e2884b883abb095c623b96fa97ec5 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 25 Nov 2025 21:27:15 +0400 Subject: fix(sdev): avoid using run --- scripts/gui/sdev | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'scripts/gui') diff --git a/scripts/gui/sdev b/scripts/gui/sdev index 2d80184..5c2976f 100755 --- a/scripts/gui/sdev +++ b/scripts/gui/sdev @@ -27,8 +27,14 @@ get_id() { while getopts "e:d:t:lh" option; do case "${option}" in - e) run "input_device_handle enable $(get_id ${OPTARG})" ;; - d) run "input_device_handle disable $(get_id ${OPTARG})" ;; + e) + input_device_handle enable "$(get_id ${OPTARG})" + exit $? + ;; + d) + input_device_handle disable "$(get_id ${OPTARG})" + exit $? + ;; t) id=$(get_id ${OPTARG}) if input_device_handle is_enabled "${id}"; then @@ -38,11 +44,13 @@ while getopts "e:d:t:lh" option; do fi exit $? ;; - l) run "input_device_handle list" ;; + l) + input_device_handle list + exit $? + ;; h) help ;; *) invalid_use -h ;; - esac done -- cgit v1.2.3