From: Peter Palfrader Date: Sat, 8 Dec 2012 17:47:07 +0000 (+0100) Subject: Create target if it does not exist X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8c5c83a6485cb5dde855ea323e5ab4580f2cd1cc;p=mirror%2Fdsa-puppet.git Create target if it does not exist --- 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"