Merge pull request #249 from chriswells0/cp-alias-fix

Map COPY alias in Bastillefile to use cp subcommand
This commit is contained in:
Christer Edwards
2020-08-30 20:24:59 -06:00
committed by GitHub

View File

@@ -137,6 +137,7 @@ for _jail in ${JAILS}; do
_args="${bastille_template}/${_args} /"
;;
cp|copy)
_cmd='cp'
# Convert relative "from" path into absolute path inside the template directory. -- cwells
if [ "${_args%${_args#?}}" != '/' ]; then
_args="${bastille_template}/${_args}"