forked from ISTI-ansible-roles/ansible-roles
library/roles/R/templates/update_r_packages.sh.j2: Run a 'svn cleanup' before the 'svn update', to be on the safe side.
This commit is contained in:
parent
9b59689a87
commit
1fd06c6f83
|
@ -134,6 +134,7 @@ function get_data_files_from_svn() {
|
|||
if [ -d $R_PKGS_SVN_BASE_DIR/$R_PKGS_SVN_DIR ] ; then
|
||||
logger "update_r_packages: SVN update"
|
||||
cd $R_PKGS_SVN_BASE_DIR/$R_PKGS_SVN_DIR
|
||||
SVN_CLEANUP_OP=$( svn cleanup )
|
||||
SVN_UPDATE_OP=$( svn update | tail -1 | grep Updated >/dev/null 2>&1 )
|
||||
SVN_UPDATE_STATUS=$?
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue