summaryrefslogtreecommitdiffstats
path: root/.local/bin/seedy
blob: eba583b3fe4b19fc62145417893620c863986ba7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

remote="$(rclone listremotes | grep seed)"
if [ -z ${1+x} ]; then
	destination="$HOME"
else
	destination="$1"
fi

selection="$(rclone lsf "$remote" | fzf)"
printf "Copying %s to %s...\n" "$selection" "$destination"
rclone copy "$remote""$selection" "$destination" --verbose