[gimp-web/oscp] Make sure the target path is created if missing
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/oscp] Make sure the target path is created if missing
- Date: Wed, 8 Sep 2021 11:45:19 +0000 (UTC)
commit d4f14f9eba7539e8a7333fccd67b2c903b6d45e0
Author: Andrea Veri <averi redhat com>
Date: Wed Sep 8 13:45:11 2021 +0200
Make sure the target path is created if missing
testing.docs.gimp.org/docs_build/entrypoint.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/testing.docs.gimp.org/docs_build/entrypoint.sh b/testing.docs.gimp.org/docs_build/entrypoint.sh
index ea279b8c..69d090d4 100755
--- a/testing.docs.gimp.org/docs_build/entrypoint.sh
+++ b/testing.docs.gimp.org/docs_build/entrypoint.sh
@@ -9,4 +9,9 @@ BUILD_PATH=/tmp/gimp-help
git clone --depth 1 -b gimp-help-${RELEASE//\./\-} https://gitlab.gnome.org/GNOME/gimp-help.git
${BUILD_PATH}
cd ${BUILD_PATH} && ./autogen.sh --without-gimp --prefix=${BUILD_PATH}/build && make && make install
-rsync -vlr ${BUILD_PATH}/share/gimp/2.0/help/ /docs_data/${RELEASE}/
+if [ -d "/docs_data/docs/${RELEASE}" ];
+ rsync -vlr ${BUILD_PATH}/share/gimp/2.0/help/ /docs_data/docs/${RELEASE}/
+else
+ mkdir -p /docs_data/docs/${RELEASE}
+ rsync -vlr ${BUILD_PATH}/share/gimp/2.0/help/ /docs_data/docs/${RELEASE}/
+fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]