Try to fix cp bug for cptemplate

This commit is contained in:
Eric Torres 2018-10-15 08:20:10 -07:00
parent 5ffd24adcd
commit 7c40a56cb4

View File

@ -47,4 +47,4 @@ fd_opts+=('--type' 'f')
template_file="$(fd "${fd_opts[@]}" . "${HOME}/Templates" | fzf --read0 --select-1 --exit-0 --no-mouse)"
[[ -z "${template_file}" ]] && exit 1
cp --interactive --verbose "${template_file}" "./${1:-"${template_file}"}"
cp --interactive --verbose "${template_file}" "${1:-.}"