From 4479029e271e1940cef3ffbe5523a590ccb557c6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 6 Feb 2020 14:46:26 -0500 Subject: [PATCH] When doing a release, reploy to debian/release-VERSION instead of master. --- utils/packpack/rsync_xfer.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/utils/packpack/rsync_xfer.sh b/utils/packpack/rsync_xfer.sh index f6ce377e7..c9a737a03 100755 --- a/utils/packpack/rsync_xfer.sh +++ b/utils/packpack/rsync_xfer.sh @@ -18,7 +18,16 @@ for CMD in sshfs rsync find fusermount mkdir; do done if [ "${OS}" == "debian" ] || [ "${OS}" == "ubuntu" ] || [ "${OS}" == "raspbian" ]; then - targetfolder="debian/master/mini-dinstall/incoming" + if [ "${RELEASE}" != "" ]; then + IFS='.' read -r -a VERSION_PARTS <<< "$RELEASE" + if [ "${VERSION_PARTS[0]}.${VERSION_PARTS[1]}" == "1.30" ]; then + targetfolder="debian/release/mini-dinstall/incoming" + else + targetfolder="debian/release-${VERSION_PARTS[0]}.${VERSION_PARTS[1]}/mini-dinstall/incoming" + fi + else + targetfolder="debian/master/mini-dinstall/incoming" + fi else targetfolder="travis" fi