+ support for directories

This commit is contained in:
committer
2024-06-15 17:36:06 -05:00
parent f0c0eb1f48
commit 8a20d3603b

View File

@@ -14,6 +14,6 @@ cwd=$(pwd)
input_file=$(dragon-drop --target --and-exit) input_file=$(dragon-drop --target --and-exit)
input_file=${input_file:7} # remove "file://" from file path input_file=${input_file:7} # remove "file://" from file path
if [[ -f "${input_file}" ]] ; then if [[ -f "${input_file}" ]] || [[ -d "${input_file}" ]] ; then
cp ${input_file} ${cwd} cp -r ${input_file} ${cwd}
fi fi