Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
c2a3c48a
Commit
c2a3c48a
authored
Feb 11, 2013
by
Steven Mondji-Lerider
Browse files
bugfixing upgrade checking script to sort by file extentions
parent
25fb24a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/upgrade_check.sh
View file @
c2a3c48a
...
@@ -33,7 +33,7 @@ fi
...
@@ -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
$(
ls
$extensions
|
sort
-n
)
;
do
for
file
in
$(
echo
$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
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment