diff --git a/bin/hardening/5.9_disable_ctrl_alt_del_target.sh b/bin/hardening/5.9_disable_ctrl_alt_del_target.sh index 4e46771..194c772 100755 --- a/bin/hardening/5.9_disable_ctrl_alt_del_target.sh +++ b/bin/hardening/5.9_disable_ctrl_alt_del_target.sh @@ -32,7 +32,7 @@ apply () { if [ $FNRET = 0 ]; then ok "$TARGETNAME is disabled." else - TARGETS=$(find /lib/systemd/ /etc/systemd/ -name ctrl-alt-del.target -exec ls -l {} \;| grep -v "/dev/null" | awk '{print $NF}') + TARGETS=$(find /lib/systemd/ /etc/systemd/ -name ctrl-alt-del.target -exec ls {} \;| grep -v "/dev/null" | awk '{print $NF}') for TARGET in $TARGETS do warn "Disable $TARGET" diff --git a/lib/utils.sh b/lib/utils.sh index cd785fc..9a535f9 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -150,7 +150,6 @@ add_line_file_after_pattern() { } replace_in_file() { - set -x local FILE=$1 local SOURCE=$2 local DESTINATION=$3