diff options
Diffstat (limited to 'shell_utils.sh')
-rw-r--r-- | shell_utils.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell_utils.sh b/shell_utils.sh index 3124db598c..61b0ebcb55 100644 --- a/shell_utils.sh +++ b/shell_utils.sh @@ -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 |