From da10b9124b52e34ac49edd1120bc04926e0a44e6 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Sat, 3 Jan 2015 23:10:15 -0800 Subject: Refactoring, fixed #1013 --- scripts/include.sh/build-dep.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/include.sh') diff --git a/scripts/include.sh/build-dep.sh b/scripts/include.sh/build-dep.sh index c167c548..ad66be7e 100755 --- a/scripts/include.sh/build-dep.sh +++ b/scripts/include.sh/build-dep.sh @@ -331,7 +331,12 @@ get_prebuilt_dep() curl -O "$url/$name/$name-$version.zip" unzip -q "$name-$version.zip" rm -rf "$scriptpath/../Externals/$name" - mv "$name-$version"/* "$scriptpath/../Externals" + cd "$name-$version" + for folder in * ; do + rm -rf "$scriptpath/../Externals/$folder" + mv "$folder" "$scriptpath/../Externals" + done + cd .. rm -f "$scriptpath/../Externals/git-rev" rm -rf "$tempbuilddir" -- cgit v1.2.3