diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-01-03 23:10:15 -0800 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2015-01-03 23:10:24 -0800 |
commit | da10b9124b52e34ac49edd1120bc04926e0a44e6 (patch) | |
tree | e0b788d613d7cac4408a983dfedd55721fbdc187 /scripts | |
parent | a54deab9ad377fb36b21ec1fd67a67cb71824ea9 (diff) |
Refactoring, fixed #1013
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/include.sh/build-dep.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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" |