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

Update template.sh - bugfix for cmd
This commit is contained in:
Barry McCormick
2024-12-31 19:04:29 -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'