Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b2d355 authored by Gaurav Johari's avatar Gaurav Johari Committed by Automerger Merge Worker
Browse files

Merge "Do not fail cogsetup.sh if repo is not in PATH" into main am: 0c16cb6a

parents 6e52bccb 0c16cb6a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -52,7 +52,9 @@ function _setup_cog_env() {
  # it with this function. If the user is running repo within a Cog workspace,
  # we'll fail with an error, otherwise, we run the original repo command with
  # the given args.
  ORIG_REPO_PATH=`which repo`
  if ! ORIG_REPO_PATH=`which repo`; then
    return 0
  fi
  function repo {
    if [[ "${PWD}" == /google/cog/* ]]; then
      echo "\e[01;31mERROR:\e[0mrepo command is disallowed within Cog workspaces."