Skip to content

Commit 1ba0fbc

Browse files
author
Hunter T
committed
fix: add missing case option to exit script
1 parent 8f81b8a commit 1ba0fbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hardening/sshd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Note: This configures sshd_config to the recommendations of the security auditing tool
66
# knonw as Lynis (https://github.com/CISOfy/lynis).
77
#
8-
# Version: v1.1.0
8+
# Version: v1.1.1
99
# License: MIT License
1010
# Copyright (c) 2020-2022 Hunter T. (StrangeRanger)
1111
#
@@ -64,6 +64,7 @@ if [[ -f $config_file_bak ]]; then
6464
exit 1
6565
}
6666
;;
67+
*) exit 0 ;;
6768
esac
6869
else
6970
echo "Backing up 'sshd_config'..."

0 commit comments

Comments
 (0)