summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsamizdat-eject.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/samizdat-eject.sh b/samizdat-eject.sh
index 04ee610..f5360a7 100755
--- a/samizdat-eject.sh
+++ b/samizdat-eject.sh
@@ -10,6 +10,10 @@ btrfs_subdevices()
10 10
11devices=$(btrfs_subdevices /) || exit 1 11devices=$(btrfs_subdevices /) || exit 1
12 12
13target=$1
14
15[ -e "$target" ] && exit 1
16
13set -- 17set --
14seen= 18seen=
15for dev in $devices; do 19for dev in $devices; do
@@ -23,7 +27,7 @@ done
23 27
24copy() 28copy()
25{ 29{
26 mdadm_copy_eject /dev/md55 /root/samizdat.iso 30 mdadm_copy_eject /dev/md55 "$target"
27} 31}
28 32
29remove() 33remove()