Skip to content

Commit 634b11c

Browse files
committed
fix zip download & use ccache for ndk too
1 parent 082481c commit 634b11c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

distribute.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ which ccache &>/dev/null
3131
if [ $? -eq 0 ]; then
3232
export CC="ccache gcc"
3333
export CXX="ccache g++"
34+
export NDK_CCACHE="ccache"
3435
fi
3536

3637
#set -x
@@ -389,7 +390,7 @@ function run_get_packages() {
389390
# if already decompress, forget it
390391
cd $BUILD_PATH/$module
391392
directory=$(get_directory $filename)
392-
if [ -d $directory ]; then
393+
if [ -d "$directory" ]; then
393394
continue
394395
fi
395396

@@ -412,8 +413,8 @@ function run_get_packages() {
412413
fi
413414
;;
414415
*.zip )
415-
try unzip x $pfilename
416-
root_directory=$(basename $(try unzip -l $pfilename|sed -n 4p|awk '{print $4}'))
416+
try unzip $pfilename
417+
root_directory=$(basename $(try unzip -l $pfilename|sed -n 5p|awk '{print $4}'))
417418
if [ "X$root_directory" != "X$directory" ]; then
418419
mv $root_directory $directory
419420
fi

0 commit comments

Comments
 (0)