summaryrefslogtreecommitdiff
path: root/dr
blob: ac0a078eb6d2c5cc3fb87849aeb4d292c0f84100 (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