diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-06-19 00:45:57 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-06-19 00:45:57 +0400 |
commit | 4b772b29644c0be670cededdea6732d6f2bc642a (patch) | |
tree | 585ca4db58e3d0ffdef3881714e4cc710bac2364 | |
parent | 0495f17898e621b5b7199b20d2ee28d2841a5a2a (diff) |
scripts: useless trailing spaces cleaned
-rwxr-xr-x | scripts/br | 4 | ||||
-rwxr-xr-x | scripts/sdev | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -33,8 +33,8 @@ if [ "${#}" -eq 0 ]; then [ -z "${link}" ] || "${browser}" "${link}" -elif [ "${#}" -eq 1 ]; then - [ "${1}" = "-h" ] && help +elif [ "${#}" -eq 1 ]; then + [ "${1}" = "-h" ] && help "${browser}" "${1}" else diff --git a/scripts/sdev b/scripts/sdev index 22c1af5..39f22c5 100755 --- a/scripts/sdev +++ b/scripts/sdev @@ -50,13 +50,13 @@ check_program "xinput" while getopts "e:d:t:lh" option; do case "${option}" in - e) + e) get_id "${OPTARG}" xenable "${id}" ;; - d) + d) get_id "${OPTARG}" - xdisable "${id}" + xdisable "${id}" ;; t) get_id "${OPTARG}" @@ -67,7 +67,7 @@ while getopts "e:d:t:lh" option; do l) if ! xinput list 2>/dev/null; then err "Listing Failed" - else + else exit 0 fi ;; |