Map COPY alias in Bastillefile to use cp subcommand

This commit is contained in:
Chris Wells
2020-08-29 19:22:26 -04:00
parent 3c070bf908
commit 94df833e6b
+1
View File
@@ -137,6 +137,7 @@ for _jail in ${JAILS}; do
_args="${bastille_template}/${_args} /" _args="${bastille_template}/${_args} /"
;; ;;
cp|copy) cp|copy)
_cmd='cp'
# Convert relative "from" path into absolute path inside the template directory. -- cwells # Convert relative "from" path into absolute path inside the template directory. -- cwells
if [ "${_args%${_args#?}}" != '/' ]; then if [ "${_args%${_args#?}}" != '/' ]; then
_args="${bastille_template}/${_args}" _args="${bastille_template}/${_args}"