Skip to content

Commit 0d32733

Browse files
authored
Merge pull request #761 from tschettervictor/fix-cmd-template
Update template.sh - bugfix for cmd
2 parents ac39d4a + 5393e27 commit 0d32733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/local/share/bastille/template.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ for _jail in ${JAILS}; do
299299
# Escape single-quotes in the command being executed. -- cwells
300300
_args=$(echo "${_args}" | sed "s/'/'\\\\''/g")
301301
# Allow redirection within the jail. -- cwells
302-
_args="sh -c '${_args}'"
302+
_args="sh -c \"${_args}\""
303303
;;
304304
cp|copy)
305305
_cmd='cp'

0 commit comments

Comments
 (0)