Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 1f0a330

Browse files
authored
Fix OMZ folder ownership after installing completions (#1215)
1 parent 6e97392 commit 1f0a330

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script-library/kubectl-helm-debian.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ fi
158158
kubectl completion bash > /etc/bash_completion.d/kubectl
159159

160160
# kubectl zsh completion
161-
mkdir -p /home/${USERNAME}/.oh-my-zsh/completions
162-
kubectl completion zsh > /home/${USERNAME}/.oh-my-zsh/completions/_kubectl
161+
mkdir -p "/home/${USERNAME}/.oh-my-zsh/completions"
162+
kubectl completion zsh > "/home/${USERNAME}/.oh-my-zsh/completions/_kubectl"
163+
chown -R "${USERNAME}" "/home/${USERNAME}/.oh-my-zsh"
163164

164165
# Install Helm, verify signature and checksum
165166
echo "Downloading Helm..."

0 commit comments

Comments
 (0)