This commit is contained in:
Oleg Sheynin 2024-03-02 21:47:22 -05:00
parent a6a37edec3
commit 46eead797f
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
0.6.1
0.6.2

View File

@ -15,7 +15,7 @@ fi
if [ "${Version}" == "" ]
then
usage
Version=latest
fi
# ----- Settings
@ -39,6 +39,11 @@ function rsync_load_version() {
user=${ReleaseUsers[${idx}]}
rel_dir=${ReleaseDir[${idx}]}
if [ "${Version}" == "latest" ]; then
echo "Checking for latest version of ${Project} on ${user}@${host}:${rel_dir}"
Version=$(ssh -q -p ${port} ${user}@${host} "ls -tr ${rel_dir}/${Project} | tail -1" )
echo "Latest version is ${Version}"
fi
echo "Checking ${user}@${host} for ${rel_dir}/${Project}/${Version} ..."
if ssh -q -p ${port} ${user}@${host} "test -d ${rel_dir}/${Project}/${Version}"
then