Selaa lähdekoodia

cipd_bin_setup: load cipd script instead of running it

Run it in a subshell to avoid forking+execing another shell.

Bug: 1469696
Change-Id: I173f18aa3bf2f181db261750f4e51422717886ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4753234
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Mike Frysinger 2 vuotta sitten
vanhempi
commit
397276fe81
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      cipd_bin_setup.sh

+ 3 - 1
cipd_bin_setup.sh

@@ -15,8 +15,10 @@ function cipd_bin_setup {
         ;;
     esac
 
-    "$MYPATH/cipd" ensure \
+    (
+    source "$MYPATH/cipd" ensure \
         -log-level warning \
         -ensure-file "$ENSURE" \
         -root "$ROOT"
+    )
 }