From 6a180d00c1a24911efc0d3b5538498dd8a49d05f Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 7 Sep 2025 17:37:27 -0400 Subject: [PATCH] =?UTF-8?q?cp:=20eliminate=20redundant=20=E2=80=9C=5Foptio?= =?UTF-8?q?n=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/share/bastille/cp.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/cp.sh b/usr/local/share/bastille/cp.sh index a31076c3..5aa724dd 100644 --- a/usr/local/share/bastille/cp.sh +++ b/usr/local/share/bastille/cp.sh @@ -97,12 +97,10 @@ for _jail in ${JAILS}; do # Workaround to properly copy host resolv.conf to jail if the host file is a symlink. if [ "${host_path}" = "${bastille_resolv_conf}" ] && [ -L "${host_path}" ]; then - _option="${OPTION}L" - else - _option="${OPTION}" + OPTION="${OPTION}L" fi - if ! cp "${_option}" "${host_path}" "${jail_path}"; then + if ! cp "${OPTION}" "${host_path}" "${jail_path}"; then ERRORS=$((ERRORS + 1)) error_continue "[ERROR]: CP failed: ${host_path} -> ${jail_path}" fi