Skip to content

Commit 87da8c4

Browse files
authored
Update android_example.sh: Skip error if sdk/cmdline-tools/latest/* is empty (pytorch#939)
Skip error if sdk/cmdline-tools/latest/* is empty
1 parent 3bd219a commit 87da8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/android_example.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ setup_android_sdk_manager() {
6969
fi
7070
pushd ${TORCHCHAT_ROOT}/build/android
7171
mkdir -p sdk/cmdline-tools/latest
72-
rm -r sdk/cmdline-tools/latest/*
72+
rm -r sdk/cmdline-tools/latest/* || true
7373

7474
echo "Download Android SDK Manager"
7575
curl "${SDK_MANAGER_URL}" -o commandlinetools.zip

0 commit comments

Comments
 (0)