summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-06-02 00:33:51 +0100
committerNick White <git@njw.me.uk>2009-06-02 00:33:51 +0100
commit7800af8c28fcaea89f1b0370aa21a72c24efc19d (patch)
treeb4241c721fc3d6e677d70fb97dfaa0a4d26474a1 /includes
parenta1bfefe38eb5f43ba88fac06654fd6eb87f8a79d (diff)
downloadgemrb-gameinstallers-7800af8c28fcaea89f1b0370aa21a72c24efc19d.tar.bz2
gemrb-gameinstallers-7800af8c28fcaea89f1b0370aa21a72c24efc19d.zip
Reverted to old method of copylower
New method didn't take into account the directory to put the file in. However Tasos said this method didn't work for him...
Diffstat (limited to 'includes')
-rw-r--r--includes/generic-includes.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh
index 97988d5..ac62dd2 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -143,7 +143,7 @@ function copylower
# usage: copylower source destination
if [ -d "$1" ]; then
for filename in $(find "$1" -type f); do
- lowerpath="$(basename $filename |tr A-Z a-z)"
+ lowerpath="$(echo $filename|gawk -F "$1" '{print $2}'|tr A-Z a-z)"
cp -f "$filename" "$2/$lowerpath" || die
done
elif [ -f "$1" ]; then