From 8c5c83a6485cb5dde855ea323e5ab4580f2cd1cc Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 8 Dec 2012 18:47:07 +0100 Subject: [PATCH] Create target if it does not exist --- .../files/static-mirroring/static-master-update-component | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/roles/files/static-mirroring/static-master-update-component b/modules/roles/files/static-mirroring/static-master-update-component index 2f1742bec..d9dae27c8 100755 --- a/modules/roles/files/static-mirroring/static-master-update-component +++ b/modules/roles/files/static-mirroring/static-master-update-component @@ -84,10 +84,6 @@ if [ -z "$srchost" ] || [ -z "$srcdir" ]; then exit 1 fi tgt="$base/$component" -if ! [ -d "$tgt" ]; then - echo >&2 "$0: Invalid component: $component ($tgt does not exist)"; - exit 1 -fi if [ "$srchost" = "`hostname -f`" ]; then src="$srcdir" -- 2.20.1