+ support for directories
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user