Browse Source

sde-package: enhanced package_parse() to sanitize (lower case) the arguments

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
2208c449c5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lib/sde-package.in

+ 3
- 1
lib/sde-package.in

@ -31,9 +31,11 @@ package_confdir() {
}
package_parse() {
local ref= list= dir=
local ref= list=
for ref; do
# sanitise
ref=$(echo "$ref" | tr 'A-Z' 'a-z')
if [ -d "$ref" ]; then
list="$ref"
elif expr "$ref" : '.*/' > /dev/null; then

Loading…
Cancel
Save