From 633d6a8e1ce276cbc5b154bf5cef7525f28a4892 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 24 Mar 2011 19:42:39 +0000 Subject: [PATCH] [20460] Windows build: fix upload code git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@20467 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/build_package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/win32/build_package.sh b/packaging/win32/build_package.sh index 8ce3685372..792358f5e1 100644 --- a/packaging/win32/build_package.sh +++ b/packaging/win32/build_package.sh @@ -84,7 +84,9 @@ if [ `hostname` = "gnucash-win32" ]; then TARGET_DIR=${REPOS_URL##*/} fi # Small hack to create the target directory if it doesn't exist yet - scp -r $TARGET_DIR upload@code.gnucash.org:public_html/win32 + mkdir "$TMP_DIR/$TARGET_DIR" + scp -r "$TMP_DIR/$TARGET_DIR" upload@code.gnucash.org:public_html/win32 + rmdir "$TMP_DIR/$TARGET_DIR" # Copy the files to the chosen target directory scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload@code.gnucash.org:public_html/win32/$TARGET_DIR fi