summaryrefslogtreecommitdiff
path: root/baserock-system-config-sync/mount-system-versions-dir
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2013-11-15 16:42:35 +0000
committerBen Brown <ben.brown@codethink.co.uk>2014-01-13 09:07:40 +0000
commit0949e7e253ed0c2cb2a7889917e0696216b715ff (patch)
treed4f307f222c68a45f986975815c8364e4bce1924 /baserock-system-config-sync/mount-system-versions-dir
parent20e5304f40148d43c6ab57dea0abe400475e7e9f (diff)
downloadtbdiff-0949e7e253ed0c2cb2a7889917e0696216b715ff.tar.gz
'Playing' with bscs.benbrown/understanding-bscs
Diffstat (limited to 'baserock-system-config-sync/mount-system-versions-dir')
-rwxr-xr-xbaserock-system-config-sync/mount-system-versions-dir6
1 files changed, 3 insertions, 3 deletions
diff --git a/baserock-system-config-sync/mount-system-versions-dir b/baserock-system-config-sync/mount-system-versions-dir
index 6028ea4..b41f3a6 100755
--- a/baserock-system-config-sync/mount-system-versions-dir
+++ b/baserock-system-config-sync/mount-system-versions-dir
@@ -30,11 +30,11 @@ if [ "$#" != 1 ]; then
fi
-mouting_point="$1"
+mounting_point="$1"
disk=$(awk '{ if ($1 != "rootfs" && $2 == "/") print $1 }' /proc/mounts)
-mkdir -p "$mouting_point"
+mkdir -p "$mounting_point"
-mount "$disk" "$mouting_point"
+mount "$disk" "$mounting_point"