simplify
authorPeter Palfrader <peter@palfrader.org>
Wed, 19 Dec 2012 21:41:50 +0000 (22:41 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 19 Dec 2012 21:41:50 +0000 (22:41 +0100)
modules/roles/templates/static-mirroring/static-update-component.erb

index 4ef82e5..d00d749 100755 (executable)
@@ -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