Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-04-01 00:55:38 +0000
committerDavid Williams2013-04-01 00:55:55 +0000
commit1cb6170122fd9309f0ab025ffd9720e501eccd65 (patch)
tree704d2e16491bc252d2e6bee7854cca46ef48a96d /production/sdk/cleaners
parent2e0c3b497305610c50fae99d9b4774ff18ad17e0 (diff)
downloadeclipse.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-xproduction/sdk/cleaners/dailyClean.sh2
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 '{}' \;

Back to the top