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
d9dae27
..
197044f
100755
(executable)
--- a/
modules/roles/files/static-mirroring/static-master-update-component
+++ b/
modules/roles/files/static-mirroring/static-master-update-component
@@
-84,6
+84,10
@@
if [ -z "$srchost" ] || [ -z "$srcdir" ]; then
exit 1
fi
tgt="$base/$component"
+if ! [ -d "$tgt" ]; then
+ echo "$0: Creating $tgt for $component";
+ mkdir "$tgt"
+fi
if [ "$srchost" = "`hostname -f`" ]; then
src="$srcdir"