From 529f0bbc5cfbcec2e92688331f3cb6b487bb8fab Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 19 Dec 2012 22:41:50 +0100 Subject: [PATCH] simplify --- .../templates/static-mirroring/static-update-component.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/roles/templates/static-mirroring/static-update-component.erb b/modules/roles/templates/static-mirroring/static-update-component.erb index 4ef82e5d5..d00d7494a 100755 --- a/modules/roles/templates/static-mirroring/static-update-component.erb +++ b/modules/roles/templates/static-mirroring/static-update-component.erb @@ -42,9 +42,7 @@ if [ -z "$srchost" ] || [ -z "$srcdir" ]; then exit 1 fi -if [ "$srchost" = "`hostname -f`" ]; then - src="$srcdir" -else +if ! [ "$srchost" = "`hostname -f`" ]; then echo >&2 "Component $component is sourced from $srchost, not this host." exit 1 fi -- 2.20.1