From 1529f4a9308a1c808b5ac48083ca0c365c589021 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 10 Oct 2019 14:24:32 -0400 Subject: Utilities/Release: Teach "push" script to create destination subdirectory Extend the script added by commit 9bf97363b0 (Utilities/Release: Replace upload step with a "push" script, 2019-05-24, v3.15.0-rc1~56^2) to create the destination subdirectory for the CMake version being pushed. --- Utilities/Release/push.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/Release/push.bash b/Utilities/Release/push.bash index 1c8efe9..a1c6651 100755 --- a/Utilities/Release/push.bash +++ b/Utilities/Release/push.bash @@ -50,6 +50,9 @@ if test -z "$dir"; then dir="v${version}" fi readonly dir +if ! test -d "${dest}/${dir}"; then + mkdir "${dest}/${dir}" +fi for f in cmake-${version}*; do if ! test -f "${f}"; then -- cgit v0.12