Skip to content

Commit

Permalink
fix(workspace): update chown command
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed May 24, 2023
1 parent 25c701f commit 3028bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chezmoi/dot_local/bin/executable_set-workspace.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [[ ! -d "${WORKSPACE_DIR}" ]]; then
log_task "Creating workspace directory: ${WORKSPACE_DIR}"
if [[ "${SODOER}" == "true" ]]; then
c sudo mkdir -p "${WORKSPACE_DIR}"
c sudo chown "${USER}" "${WORKSPACE_DIR}"
c sudo chown "${USER}:${USER}" "${WORKSPACE_DIR}"
else
c mkdir -p "${WORKSPACE_DIR}"
fi
Expand Down Expand Up @@ -108,7 +108,7 @@ if [[ "${SYMLINK_COLAB}" == "true" ]]; then
log_task "Symlinking colab workspace: ${COLAB_WORKSPACE}"
if [[ ! -d "${COLAB_DRIVE}" ]]; then
c sudo mkdir -p "${COLAB_DRIVE}"
c sudo chown "${USER}" "${COLAB_DRIVE}"
c sudo chown "${USER}:${USER}" "${COLAB_DRIVE}"
fi
# if synmlink already exists, remove it
if [[ ! -L "${COLAB_WORKSPACE}" ]]; then
Expand Down

0 comments on commit 3028bed

Please sign in to comment.