aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
..