From ad17a4eecad2230adae76869803dd003f3f9db83 Mon Sep 17 00:00:00 2001 From: Tasos Latsas Date: Sat, 30 May 2009 00:50:26 +0300 Subject: minor fixes in auto installer and fixed the copylower function in generic includes --- includes/generic-includes.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh index 1e0e89d..97988d5 100644 --- a/includes/generic-includes.sh +++ b/includes/generic-includes.sh @@ -143,11 +143,12 @@ function copylower # usage: copylower source destination if [ -d "$1" ]; then for filename in $(find "$1" -type f); do - lowerpath="$(echo $filename|gawk -F "$1" '{print $2}'|tr A-Z a-z)" + lowerpath="$(basename $filename |tr A-Z a-z)" cp -f "$filename" "$2/$lowerpath" || die done elif [ -f "$1" ]; then - cp -f "$(echo $1|tr A-Z a-z)" "$2" + lowername="$(basename $1|tr A-Z a-z)" + cp -f "$1" "$2"/$lowername fi } -- cgit v1.2.3