1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-04-19 21:08:41 +02:00

2 Commits

Author SHA1 Message Date
Marc Cornellà
76ffd9e22a fix(installer): handle sudo shims that don't support -k flag (#13651)
Related to #13585

Co-authored-by: Daniel Bates <daniel@batesai.org>
2026-03-26 20:09:56 +01:00
dependabot[bot]
11c1718983 chore(deps): bump requests from 2.32.5 to 2.33.0 in /.github/workflows/dependencies (#13649)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-26 18:38:42 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,6 @@ certifi==2026.2.25
charset-normalizer==3.4.6
idna==3.11
PyYAML==6.0.3
requests==2.32.5
requests==2.33.0
semver==3.0.4
urllib3==2.6.3

View File

@@ -473,7 +473,8 @@ EOF
# be prompted for the password either way, so this shouldn't cause any issues.
#
if user_can_sudo; then
sudo -k chsh -s "$zsh" "$USER" # -k forces the password prompt
sudo -k >/dev/null 2>&1 # -k forces the password prompt
sudo chsh -s "$zsh" "$USER"
else
chsh -s "$zsh" "$USER" # run chsh normally
fi