Author: nickboldt
Date: 2012-10-01 16:00:44 -0400 (Mon, 01 Oct 2012)
New Revision: 44194
Modified:
trunk/build/util/cleanup/jbosstools-cleanup.sh
Log:
exclude *.ml, *.html files when scanning sftp folders for child folders
Modified: trunk/build/util/cleanup/jbosstools-cleanup.sh
===================================================================
--- trunk/build/util/cleanup/jbosstools-cleanup.sh 2012-10-01 19:43:47 UTC (rev 44193)
+++ trunk/build/util/cleanup/jbosstools-cleanup.sh 2012-10-01 20:00:44 UTC (rev 44194)
@@ -63,7 +63,7 @@
dirs=$(sftp -b $tmp tools(a)filemgmt.jboss.org 2>/dev/null)
i=0
for c in $dirs; do
- if [[ $i -gt 2 ]] && [[ $c != "sftp>" ]] && [[ ${c##*.} !=
"" ]]; then # valid dir
+ if [[ $i -gt 2 ]] && [[ $c != "sftp>" ]] && [[ ${c##*.} !=
"" ]] && [[ ${c##*/*.*ml} != "" ]]; then # valid dir; exclude
*.xml, *.html files
getSubDirsReturn=$getSubDirsReturn" "$c
fi
(( i++ ))
Show replies by date