summaryrefslogtreecommitdiff
path: root/auto.sh
diff options
context:
space:
mode:
authorpsachin2013-07-31 17:42:19 +0530
committerpsachin2013-07-31 17:48:31 +0530
commit5d33822cf66c8320b044ba9d7a085206ed2550d1 (patch)
treeb8bc903557d468e997e1796de79e740081f3a02b /auto.sh
parent9643c51f416d32851fce6b36a9a269b02d57f21e (diff)
downloadtbc-auto-checker-5d33822cf66c8320b044ba9d7a085206ed2550d1.tar.gz
tbc-auto-checker-5d33822cf66c8320b044ba9d7a085206ed2550d1.tar.bz2
tbc-auto-checker-5d33822cf66c8320b044ba9d7a085206ed2550d1.zip
Subject:BUGFIX: sorting0.2
Description: 1) error in sorting if the file name starts with 'Example2_3.sce' OR 'example2_3.sce' instead of '2_3.sce'
Diffstat (limited to 'auto.sh')
-rwxr-xr-xauto.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto.sh b/auto.sh
index 6e01b6a..f1ff99b 100755
--- a/auto.sh
+++ b/auto.sh
@@ -69,6 +69,8 @@ function scan_sce_for_errors() {
SCE_FILE_LIST=$(find ${ZIPFILE} -type f -iname "*.sce" ! \
-path "*/DEPENDENCIES*" | \
awk -vFS=/ -vOFS="." '{print $NF,$0}' | \
+ sed 's/^[[:upper:]]*//g' | \
+ sed 's/^[[:lower:]]*//g' | \
sort -n -t _ -k1 -k2 | cut -d"." -f3-)
SCE_FILE_COUNT=$(echo "${SCE_FILE_LIST}" | wc -l)