From 50e7484fd5378306eb69efafd7e95ed916d5a70b Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Fri, 19 Feb 2021 15:41:27 +0800 Subject: [PATCH] aosp: continue on error --- aosp.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aosp.sh b/aosp.sh index 6146db7..40a680b 100755 --- a/aosp.sh +++ b/aosp.sh @@ -22,7 +22,9 @@ function repo_sync() { $REPO sync -f -j1 repo_sync_rc=$? set -e - [[ "$repo_sync_rc" -ne 0 ]] && echo "WARNING: repo-sync may fail, but we just ignore it." + if [[ "$repo_sync_rc" -ne 0 ]]; then + echo "WARNING: repo-sync may fail, but we just ignore it." + fi } function git_repack() {