Try to fix cp bug for cptemplate
This commit is contained in:
parent
5ffd24adcd
commit
7c40a56cb4
@ -47,4 +47,4 @@ fd_opts+=('--type' 'f')
|
|||||||
template_file="$(fd "${fd_opts[@]}" . "${HOME}/Templates" | fzf --read0 --select-1 --exit-0 --no-mouse)"
|
template_file="$(fd "${fd_opts[@]}" . "${HOME}/Templates" | fzf --read0 --select-1 --exit-0 --no-mouse)"
|
||||||
[[ -z "${template_file}" ]] && exit 1
|
[[ -z "${template_file}" ]] && exit 1
|
||||||
|
|
||||||
cp --interactive --verbose "${template_file}" "./${1:-"${template_file}"}"
|
cp --interactive --verbose "${template_file}" "${1:-.}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user