#!/usr/bin/env bash # klevstul :: 25.04 # based on 'dots/bin/tp.sh' this_file_name=`basename "$0"` # #for input_file in "$@"; do # # declare -a theArray # # while read -r line # do # theArray+=("$line") # done <<< "$input_file" # # for line in "${theArray[@]}" # do # bare_line=${line} # # if [[ ${line} != *"/"* ]]; then # line="${cwd}/${line}" # fi # # new_file=${line//$sync_dir_sym/$sync_dir} # # if [[ -f "${new_file}" ]] || [[ -d "${new_file}" ]] ; then # #trash-put "${bare_line}" # else # echo "error: unable process \"${new_file}\"" # fi # # done # #done echo "MULTI-DRAGON: $1" #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