aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2019-11-04 07:38:10 +0100
committerMax Christian Pohle2019-11-04 07:38:10 +0100
commit2b59a5c8b5e77e115b6b4ca2463cdfe70b0b51ba (patch)
tree7ef7de08e29c62a81d483ee60397cff58112615e
parentb1c22eef0689a84c29ccbee2464b16818e5d8c6a (diff)
downloadzfs-bash-tools-2b59a5c8b5e77e115b6b4ca2463cdfe70b0b51ba.tar.bz2
zfs-bash-tools-2b59a5c8b5e77e115b6b4ca2463cdfe70b0b51ba.zip
Fixed mistake with target path
-rw-r--r--zfs-flatten.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs-flatten.sh b/zfs-flatten.sh
index 179048c..c61af40 100644
--- a/zfs-flatten.sh
+++ b/zfs-flatten.sh
@@ -52,7 +52,7 @@ for SNAPSHOT in $SNAPSHOTS; do
52 52
53 SNAPDIR=$(realpath $MOUNTPOINT/.zfs/snapshot/$SNAPSHOT) 53 SNAPDIR=$(realpath $MOUNTPOINT/.zfs/snapshot/$SNAPSHOT)
54 if test -d $SNAPDIR; then 54 if test -d $SNAPDIR; then
55 TARGET_DIR="$(realpath $DATASET_TARGET)$(realpath $MOUNTPOINT)" 55 TARGET_DIR="$(realpath $MOUNTPOINT_TARGET)$(realpath $MOUNTPOINT)"
56 mkdir -p "$TARGET_DIR" 56 mkdir -p "$TARGET_DIR"
57 echo rsync --info=stats3 -a "$SNAPDIR/" "$TARGET_DIR/" 57 echo rsync --info=stats3 -a "$SNAPDIR/" "$TARGET_DIR/"
58 if ! rsync --info=stats3 -a "$SNAPDIR/" "$TARGET_DIR/" ; then 58 if ! rsync --info=stats3 -a "$SNAPDIR/" "$TARGET_DIR/" ; then
..