Revert "Update template.sh - bugfix for cmd"

This commit is contained in:
tschettervictor
2025-01-04 10:31:11 -07:00
committed by GitHub
parent 0d32733eed
commit 6a3fbf2aeb

View File

@@ -299,7 +299,7 @@ for _jail in ${JAILS}; do
# Escape single-quotes in the command being executed. -- cwells
_args=$(echo "${_args}" | sed "s/'/'\\\\''/g")
# Allow redirection within the jail. -- cwells
_args="sh -c \"${_args}\""
_args="sh -c '${_args}'"
;;
cp|copy)
_cmd='cp'