From 8a20d3603b7b3850de72c1caf62ef31c3a0554e7 Mon Sep 17 00:00:00 2001 From: committer Date: Sat, 15 Jun 2024 17:36:06 -0500 Subject: [PATCH] + support for directories --- dots/bin/dragin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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