From 456abf0c063ca66a282f699b68b06e8edd20d19a Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 14 Nov 2022 01:11:42 -0500 Subject: [PATCH] Remove superflous `"`s and `;`s --- sshdpw | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sshdpw b/sshdpw index 2007b82..953489e 100755 --- a/sshdpw +++ b/sshdpw @@ -3,17 +3,17 @@ [ ! "$(id -u)" -eq 0 ] && echo "Run as superuser." && exit 1 case "${1}" in - "on"|"enable"|"unlock") + on|yes|enable|unlock) FROM=yes; TO=no; ;; - "off"|"disable"|"lock") + off|no|disable|lock) FROM=no; TO=yes; ;; - "toggle") + toggle) if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then - FROM=yes; TO=no; + FROM=yes; TO=no else - FROM=no; TO=yes; + FROM=no; TO=yes fi ;; status)