Browse Source

lib/functions.in: changed createprefix_function() to use dedicated variables $foodir for the iteration and $dir for the expanded path

user/chris/test/lib64
Christian Wiese 15 years ago
parent
commit
99da2afe33
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      lib/functions.in

+ 7
- 5
lib/functions.in

@ -788,11 +788,13 @@ autoextract_subdir_zip() {
createprefix_function() {
echo "Creating $root/$prefix/<..> if required ..."
for x in $foodirlist; do
eval "x=\"$root\$$x\""
if [ ! -e $x ]; then
mkdir -p $x
rmemptydir="$rmemptydir $x"
local dir=
local foodir=
for foodir in $foodirlist; do
eval "dir=\"$root\$$foodir\""
if [ ! -e $dir ]; then
mkdir -p $dir
rmemptydir="$rmemptydir $dir"
fi
done
}

Loading…
Cancel
Save