mirror of
https://github.com/BastilleBSD/bastille.git
synced 2025-12-12 10:00:01 +01:00
fix shellcheck
This commit is contained in:
@@ -365,6 +365,7 @@ for jail in ${JAILS}; do
|
|||||||
# Escape single-quotes in the command being executed. -- cwells
|
# Escape single-quotes in the command being executed. -- cwells
|
||||||
args=$(echo "${args}" | sed "s/'/'\\\\''/g")
|
args=$(echo "${args}" | sed "s/'/'\\\\''/g")
|
||||||
# Allow redirection within the jail. -- cwells
|
# Allow redirection within the jail. -- cwells
|
||||||
|
# shellcheck disable=SC2089
|
||||||
args="sh -c '${args}'"
|
args="sh -c '${args}'"
|
||||||
;;
|
;;
|
||||||
cp|copy)
|
cp|copy)
|
||||||
@@ -386,6 +387,7 @@ for jail in ${JAILS}; do
|
|||||||
args="install -y ${args}"
|
args="install -y ${args}"
|
||||||
;;
|
;;
|
||||||
tag|tags)
|
tag|tags)
|
||||||
|
# shellcheck disable=SC2090
|
||||||
cmd='tags'
|
cmd='tags'
|
||||||
args="add $(echo ${args} | tr ' ' ,)"
|
args="add $(echo ${args} | tr ' ' ,)"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user