replacing echo call by ls before calling sort

This commit is contained in:
Steven Mondji-Lerider 2013-02-18 11:52:56 +00:00
parent 62e807cfdb
commit 922c9be9c7
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ fi
# the upgrade script we are considering # the upgrade script we are considering
extensions="*.sql *.sh *.php" extensions="*.sql *.sh *.php"
cd /usr/share/alternc/install/upgrades cd /usr/share/alternc/install/upgrades
for file in $( echo $extensions | sort -n ) ; do for file in $( ls $extensions | sort -n ) ; do
if [ -r $file ]; then if [ -r $file ]; then
# the version in the filename # the version in the filename
upvers=`strip_ext $file` upvers=`strip_ext $file`