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

Commit a7939b28 authored by Sam Lewis's avatar Sam Lewis
Browse files

create symlink destination if it doesn't exist for cog workspaces

Bug: 401229933
Change-Id: I0ca4ab547d7d524ec2c9ba2871687a79f657631c
parent e13bd368
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