Files
lnx-arch/dots/bin/dragin.sh

15 lines
291 B
Bash
Raw Normal View History

2024-06-15 17:31:34 -05:00
#!/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
2024-06-15 17:36:06 -05:00
if [[ -f "${input_file}" ]] || [[ -d "${input_file}" ]] ; then
cp -r ${input_file} ${cwd}
2024-06-15 17:31:34 -05:00
fi