Commit c688b47e70c42473c2021e61597add517cb68d1f

Authored by Fernando Ribeiro
1 parent 6d77da20ca

corrected multiplication in script

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
dspace/bin/RCAAP_remove_export_files.sh
... ... @@ -20,7 +20,7 @@ TIME_TO_LIVE_HOURS=`cat dspace.cfg | grep "org.dspace.app.itemexport.life.span.h
20 20 cd $PATH_OF_FILES_TO_REMOVE
21 21  
22 22 #TIME WILL BE IN MINUTES BUT IS DEFINED IN HOURS IN DSOACE.CFG
23   -del_time_in_minutes=(60 * $TIME_TO_LIVE_HOURS)
  23 +del_time_in_minutes=$((60 * $TIME_TO_LIVE_HOURS))
24 24  
25 25 #delete files that match criteria
26 26 find $PATH_OF_FILES_TO_REMOVE -maxdepth 2 -mmin +$del_time_in_minutes -type f -name "*.zip" -exec rm -f {} \;
... ...