diff options
author | David Williams | 2013-04-01 00:55:38 +0000 |
---|---|---|
committer | David Williams | 2013-04-01 00:55:55 +0000 |
commit | 1cb6170122fd9309f0ab025ffd9720e501eccd65 (patch) | |
tree | 704d2e16491bc252d2e6bee7854cca46ef48a96d /production/sdk/cleaners | |
parent | 2e0c3b497305610c50fae99d9b4774ff18ad17e0 (diff) | |
download | eclipse.platform.releng.aggregator-1cb6170122fd9309f0ab025ffd9720e501eccd65.tar.gz eclipse.platform.releng.aggregator-1cb6170122fd9309f0ab025ffd9720e501eccd65.tar.xz eclipse.platform.releng.aggregator-1cb6170122fd9309f0ab025ffd9720e501eccd65.zip |
[releng] fix "daily clean" script to use arithmethic comparison
Diffstat (limited to 'production/sdk/cleaners')
-rwxr-xr-x | production/sdk/cleaners/dailyClean.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/production/sdk/cleaners/dailyClean.sh b/production/sdk/cleaners/dailyClean.sh index 619ff09e9..00a359422 100755 --- a/production/sdk/cleaners/dailyClean.sh +++ b/production/sdk/cleaners/dailyClean.sh @@ -4,7 +4,7 @@ # This logic, though, in theory, depending on when ran, could find say 6 builds, # then remove them all if all older than 4 days. nbuilds=$( find /home/data/httpd/download.eclipse.org/eclipse/downloads/drops4 -maxdepth 1 -name "N*" -exec echo '{}' \; | wc -l ) -if [[ $nbuilds > 4 ]] +if (( $nbuilds > 4 )) then echo "Number of builds before cleaning: $nbuilds" find /home/data/httpd/download.eclipse.org/eclipse/downloads/drops4 -maxdepth 1 -ctime +3 -name "N*" -ls -exec rm -fr '{}' \; |