Merge pull request #789 from tschettervictor/revert-761-fix-cmd-template

Revert "Update template.sh - bugfix for cmd"
This commit is contained in:
Barry McCormick
2025-01-04 09:32:45 -08:00
committed by GitHub

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'