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