Files
lnx-arch/dots/bin/dragin.sh
committer e2d602ce4c u
2024-06-15 17:36:30 -05:00

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