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/common-utils/main.sh | |
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/common-utils/main.sh')
-rw-r--r-- | src/common-utils/main.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |