Better handles slow VM's.
Unified · Split
| @@ -315,15 +315,8 @@ if [ $update_web = "yes" ]; then · 314 unmodified lines | |||
| 315 | fi | 315 | fi |
| 316 | 316 | ||
| 317 | if [ $release_files = "yes" ]; then | 317 | if [ $release_files = "yes" ]; then |
| 318 | echo "Checking for an existing release..." | ||
| 319 | if ssh ${username}@${hostname} ls ${release_path}/${rcpath}${module}/${release_num}/$src_gz >/dev/null 2>&1; then | ||
| 320 | if [ "$release_force" != "yes" ]; then | ||
| 321 | echo "error: file already exists!" | ||
| 322 | exit 1 | ||
| 323 | fi | ||
| 324 | fi | ||
| 325 | ssh ${username}@${hostname} mkdir -p ${release_path}/${rcpath}${module}/${release_num} | 318 | ssh ${username}@${hostname} mkdir -p ${release_path}/${rcpath}${module}/${release_num} |
| 326 | scp -p $release_list ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num} | 319 | rsync -avz --delete --progress $release_list ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num} |
| 327 | # FIXME: Stop pushing this and need to find a solution to help push it later. | 320 | # FIXME: Stop pushing this and need to find a solution to help push it later. |
| 328 | #scp -p NEWS ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num}/README | 321 | #scp -p NEWS ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num}/README |
| 329 | fi | 322 | fi |