Skip to content

Commit 4b80496

Browse files
committed
tree command maybe not install
1 parent 25b7e6e commit 4b80496

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

download-pre.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function download() {
4444
curl -LO "$url"
4545
mkdir -p ../product/$plat/universal
4646
unzip -oq $fname -d ../product/$plat/universal
47-
tree -L 2 ../product/$plat/universal
47+
if command -v tree >/dev/null 2>&1; then
48+
tree -L 2 ../product/$plat/universal
49+
fi
4850
echo "===================================="
4951
cd - >/dev/null
5052
}

0 commit comments

Comments
 (0)