aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-10-18 10:55:51 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-10-18 10:55:51 +0200
commitef44451e7a7a60ec2c6382f811f709fa5686c2a2 (patch)
tree2ba896976499e0d4e7e543437d3e3c5bbc4ec181 /utils
parent074c1fcb39ae5078abb00075f5cda04b9d167fdc (diff)
downloadmyconfigs-ef44451e7a7a60ec2c6382f811f709fa5686c2a2.tar.gz
myconfigs-ef44451e7a7a60ec2c6382f811f709fa5686c2a2.tar.bz2
myconfigs-ef44451e7a7a60ec2c6382f811f709fa5686c2a2.zip
Automatically make parent directory in doinst
Diffstat (limited to 'utils')
-rw-r--r--utils/inst1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/inst b/utils/inst
index 5279365..9987fff 100644
--- a/utils/inst
+++ b/utils/inst
@@ -102,6 +102,7 @@ checkdiff() {
doinst() {
echo -e "\e[1;34mrsync -rlpt $1 $2\e[0m"
+ mkdir -p "$(dirname "$2")"
rsync -rlpt $1 $2
# Now edit all .git files in target directory
for g in `find "$1" -name '.git' -type f`; do