diff options
author | naturedamends <120284608+naturedamends@users.noreply.github.com> | 2023-08-26 02:39:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 02:39:32 +0300 |
commit | 0668db5edea56a0d57575db127b793f59b489e7b (patch) | |
tree | 75bb497eb03b763b358c3bdd270aa0041f3e39ca /src | |
parent | 0cf690ee14279d9e7ae5e1308950d6067d3aba81 (diff) |
Commonutils: chown: cannot access '/home/vscode/.zshrc': No such file or directory (#662)feature_common-utils_2.1.2
* Update main.sh
* Update devcontainer-feature.json
* Test install as non root user.
---------
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common-utils/devcontainer-feature.json | 2 | ||||
-rw-r--r-- | src/common-utils/main.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common-utils/devcontainer-feature.json b/src/common-utils/devcontainer-feature.json index 4eaef21..747be30 100644 --- a/src/common-utils/devcontainer-feature.json +++ b/src/common-utils/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "common-utils", - "version": "2.1.1", + "version": "2.1.2", "name": "Common Utilities", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/common-utils", "description": "Installs a set of common command line utilities, Oh My Zsh!, and sets up a non-root user.", diff --git a/src/common-utils/main.sh b/src/common-utils/main.sh index 3731994..902f9e6 100644 --- a/src/common-utils/main.sh +++ b/src/common-utils/main.sh @@ -500,7 +500,7 @@ if [ "${INSTALL_ZSH}" = "true" ]; then copy_to_user_files=("${oh_my_install_dir}") [ -f "$user_rc_file" ] && copy_to_user_files+=("$user_rc_file") cp -rf "${copy_to_user_files[@]}" /root - chown -R ${USERNAME}:${group_name} "${oh_my_install_dir}" "${user_rc_file}" + chown -R ${USERNAME}:${group_name} "${copy_to_user_files[@]}" fi fi fi |