projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Create target if it does not exist, II
[mirror/dsa-puppet.git]
/
modules
/
roles
/
files
/
static-mirroring
/
static-master-update-component
diff --git
a/modules/roles/files/static-mirroring/static-master-update-component
b/modules/roles/files/static-mirroring/static-master-update-component
index
2f1742b
..
197044f
100755
(executable)
--- a/
modules/roles/files/static-mirroring/static-master-update-component
+++ b/
modules/roles/files/static-mirroring/static-master-update-component
@@
-85,8
+85,8
@@
if [ -z "$srchost" ] || [ -z "$srcdir" ]; then
fi
tgt="$base/$component"
if ! [ -d "$tgt" ]; then
- echo
>&2 "$0: Invalid component: $component ($tgt does not exist)
";
- exit 1
+ echo
"$0: Creating $tgt for $component
";
+ mkdir "$tgt"
fi
if [ "$srchost" = "`hostname -f`" ]; then