When doing a release, reploy to debian/release-VERSION instead of master.

This commit is contained in:
Isaac Connor 2020-02-06 14:46:26 -05:00
parent 83411cd6f2
commit 4479029e27
1 changed files with 10 additions and 1 deletions

View File

@ -18,7 +18,16 @@ for CMD in sshfs rsync find fusermount mkdir; do
done done
if [ "${OS}" == "debian" ] || [ "${OS}" == "ubuntu" ] || [ "${OS}" == "raspbian" ]; then 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 else
targetfolder="travis" targetfolder="travis"
fi fi