1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh unset LINKNOTCOPY for i in "$@"; do [ "$i" = "-l" ] && LINKNOTCOPY="y" done if [ -n "$LINKNOTCOPY" ]; then ln -sf $(dragon-drop -x -t | sed 's_^file://__') . else cp -rv $(dragon-drop -x -t | sed 's_^file://__') . fi