15 lines
291 B
Bash
Executable File
15 lines
291 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# klevstul :: 24.06
|
|
|
|
this_file_name=`basename "$0"`
|
|
|
|
cwd=$(pwd)
|
|
|
|
input_file=$(dragon-drop --target --and-exit)
|
|
input_file=${input_file:7} # remove "file://" from file path
|
|
|
|
if [[ -f "${input_file}" ]] || [[ -d "${input_file}" ]] ; then
|
|
cp -r ${input_file} ${cwd}
|
|
fi
|