Skip to content

Commit a2d1ac3

Browse files
committed
fix path error
1 parent d2e9dee commit a2d1ac3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tools/install-pre-lib.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,18 @@ function download() {
5050
if [[ $? -eq 0 ]];then
5151
mv "$tname" "$oname"
5252
fi
53-
ls build/pre/
5453
}
5554

5655
function extract(){
5756
local plat=$1
5857
local oname="build/pre/${TAG}-$plat.zip"
59-
58+
6059
if [[ -f "$oname" ]];then
61-
mkdir -p ../product/$plat/universal
62-
unzip -oq "$oname" -d ../product/$plat/universal
60+
mkdir -p build/product/$plat/universal
61+
unzip -oq "$oname" -d build/product/$plat/universal
6362
echo "extract zip file"
6463
if command -v tree >/dev/null 2>&1; then
65-
tree -L 2 ../product/$plat/universal
64+
tree -L 2 build/product/$plat/universal
6665
fi
6766
else
6867
echo "you need download ${oname} firstly."
@@ -73,7 +72,7 @@ function extract(){
7372
function fix_prefix(){
7473
local plat=$1
7574
local UNI_PC_DIR="build/product/$plat/universal/$LIB_NAME/lib/pkgconfig"
76-
ls ${UNI_PC_DIR}/*.pc
75+
7776
if ls ${UNI_PC_DIR}/*.pc >/dev/null 2>&1;then
7877
echo "fix $plat $LIB_NAME pc file prefix"
7978
p=$(cd "build/product/$plat/universal/$LIB_NAME";pwd)

0 commit comments

Comments
 (0)