summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2013-11-13 17:32:35 +0000
committerBen Brown <ben.brown@codethink.co.uk>2014-01-06 14:11:25 +0000
commitaba23668406b06d682715461f92641805ab88d98 (patch)
tree2465f09baef6a4ecd6f629cd8ca9cb30352222e0
parentb3447cb0dccac2227cac8aadce0b6acbf81c1d66 (diff)
downloadtbdiff-aba23668406b06d682715461f92641805ab88d98.tar.gz
Removed 'local' from variables that are not within functions
-rwxr-xr-xbaserock-system-config-sync/baserock-system-config-sync16
1 files changed, 8 insertions, 8 deletions
diff --git a/baserock-system-config-sync/baserock-system-config-sync b/baserock-system-config-sync/baserock-system-config-sync
index 9b00625..b17c8d0 100755
--- a/baserock-system-config-sync/baserock-system-config-sync
+++ b/baserock-system-config-sync/baserock-system-config-sync
@@ -176,17 +176,17 @@ if [ "$1" = "merge" ]; then
if [ "$#" != 2 ]; then
usage "$0"
fi
- local new_version="$2"
- local mounting_point=$(mktemp -d)
+ new_version="$2"
+ mounting_point=$(mktemp -d)
"$mounting_script" "$mounting_point"
if [ ! -d "$mounting_point/systems/$new_version" ]; then
"$unmount" "$mounting_point"
die "Error: version not found - '$new_version'"
fi
- local v1_dir="$mounting_point/systems/default/orig/etc"
- local vu_dir="$mounting_point/systems/default/run/etc"
- local v2_dir="$mounting_point/systems/$new_version/run/etc"
- local vt_dir="$mounting_point/systems/$new_version/run/etc.new"
+ v1_dir="$mounting_point/systems/default/orig/etc"
+ vu_dir="$mounting_point/systems/default/run/etc"
+ v2_dir="$mounting_point/systems/$new_version/run/etc"
+ vt_dir="$mounting_point/systems/$new_version/run/etc.new"
mkdir "$vt_dir"
trap 'rm -rvf "$vt_dir"; "$unmount" "$mounting_point"' EXIT
# For every pathname in V1, Vuser, or V2
@@ -197,8 +197,8 @@ if [ "$1" = "merge" ]; then
rm -rf "$v2_dir"
mv "$vt_dir" "$v2_dir"
elif [ "$1" = "sync" ]; then
- local canonical_version="$2"
- local mounting_point=$(mktemp -d)
+ canonical_version="$2"
+ mounting_point=$(mktemp -d)
"$mounting_script" "$mounting_point"
trap '"$unmount" "$mounting_point"' EXIT
if [ ! -d "$mounting_point/systems/$canonical_version" ]; then