summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-02 21:31:26 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-02 21:31:26 -0500
commit258e99e37d0d40fb4f16c9d894ce500e5ba9e9a6 (patch)
tree034ea7b4563e12172b73959d76ddaf2ceca44eb0 /src/chroot-tools
parenta8ca6a6098645d51a8295c75ec188ebf6339f152 (diff)
librechroot: fix variable names in sync()
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot.gpl24
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chroot-tools/librechroot.gpl2 b/src/chroot-tools/librechroot.gpl2
index 6ba361f..e9504ad 100755
--- a/src/chroot-tools/librechroot.gpl2
+++ b/src/chroot-tools/librechroot.gpl2
@@ -25,14 +25,14 @@ sync() {
local use_rsync=false
if type -P btrfs >/dev/null; then
[[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null
- btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null || use_rsync=true
+ btrfs subvolume snapshot "$rootdir" "$copydir" &>/dev/null || use_rsync=true
else
use_rsync=true
fi
if $use_rsync; then
mkdir -p "$copydir"
- rsync -a --delete -q -W -x "$CHROOTDIR/$CHROOT/root/" "$copydir"
+ rsync -a --delete -q -W -x "$rootdir" "$copydir"
fi
stat_done