From 4b772b29644c0be670cededdea6732d6f2bc642a Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Thu, 19 Jun 2025 00:45:57 +0400 Subject: scripts: useless trailing spaces cleaned --- scripts/br | 4 ++-- scripts/sdev | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/br b/scripts/br index 6802b75..8e55937 100755 --- a/scripts/br +++ b/scripts/br @@ -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 ;; -- cgit v1.2.3