diff --git a/dots/bin/dragin.sh b/dots/bin/dragin.sh index da5e783..5f7c656 100755 --- a/dots/bin/dragin.sh +++ b/dots/bin/dragin.sh @@ -14,6 +14,6 @@ cwd=$(pwd) input_file=$(dragon-drop --target --and-exit) input_file=${input_file:7} # remove "file://" from file path -if [[ -f "${input_file}" ]] ; then - cp ${input_file} ${cwd} +if [[ -f "${input_file}" ]] || [[ -d "${input_file}" ]] ; then + cp -r ${input_file} ${cwd} fi