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

Commit 545fbbd4 authored by Sam Lewis's avatar Sam Lewis Committed by Gerrit Code Review
Browse files

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

parents 76aa47b6 a7939b28
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