Update template.sh - bugfix for cmd

This commit is contained in:
tschettervictor
2024-12-08 14:41:50 -07:00
committed by GitHub
parent e1f61fb305
commit 3b7d4f1b52

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'