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

Commit 382783a5 authored by Sam Lewis's avatar Sam Lewis Committed by Automerger Merge Worker
Browse files

Merge "create symlink destination if it doesn't exist for cog workspaces" into...

Merge "create symlink destination if it doesn't exist for cog workspaces" into main am: 545fbbd4 am: 94bfbed6

Original change: https://android-review.googlesource.com/c/platform/build/+/3531036



Change-Id: Ieb78dcf923cdc7507b8d5575f555cccd4003c8f2
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e8387e67 94bfbed6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -97,8 +97,11 @@ function setup_cog_symlink() {
  local out_dir=$(getoutdir)
  local top=$(gettop)

  # return early if out dir is already a symlink
  # return early if out dir is already a symlink.
  if [[ -L "$out_dir" ]]; then
    destination=$(readlink "$out_dir")
    # ensure the destination exists.
    mkdir -p "$destination"
    return 0
  fi