Remove superflous `"`s and `;`s

master
BrainwreckedTech 2 years ago
parent 1c05f8fcba
commit 456abf0c06

@ -3,17 +3,17 @@
[ ! "$(id -u)" -eq 0 ] && echo "Run as superuser." && exit 1 [ ! "$(id -u)" -eq 0 ] && echo "Run as superuser." && exit 1
case "${1}" in case "${1}" in
"on"|"enable"|"unlock") on|yes|enable|unlock)
FROM=yes; TO=no; FROM=yes; TO=no;
;; ;;
"off"|"disable"|"lock") off|no|disable|lock)
FROM=no; TO=yes; FROM=no; TO=yes;
;; ;;
"toggle") toggle)
if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then
FROM=yes; TO=no; FROM=yes; TO=no
else else
FROM=no; TO=yes; FROM=no; TO=yes
fi fi
;; ;;
status) status)

Loading…
Cancel
Save