summaryrefslogtreecommitdiff
path: root/dr
blob: 2c4eb714365e57ad20a60ebaac73a37a25478329 (plain)
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