mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-05-01 02:33:30 +02:00
Compare commits
2 Commits
9151236d1e
...
76ffd9e22a
| Author | SHA1 | Date | |
|---|---|---|---|
| 76ffd9e22a | |||
| 11c1718983 |
@@ -2,6 +2,6 @@ certifi==2026.2.25
|
|||||||
charset-normalizer==3.4.6
|
charset-normalizer==3.4.6
|
||||||
idna==3.11
|
idna==3.11
|
||||||
PyYAML==6.0.3
|
PyYAML==6.0.3
|
||||||
requests==2.32.5
|
requests==2.33.0
|
||||||
semver==3.0.4
|
semver==3.0.4
|
||||||
urllib3==2.6.3
|
urllib3==2.6.3
|
||||||
|
|||||||
+2
-1
@@ -473,7 +473,8 @@ EOF
|
|||||||
# be prompted for the password either way, so this shouldn't cause any issues.
|
# be prompted for the password either way, so this shouldn't cause any issues.
|
||||||
#
|
#
|
||||||
if user_can_sudo; then
|
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
|
else
|
||||||
chsh -s "$zsh" "$USER" # run chsh normally
|
chsh -s "$zsh" "$USER" # run chsh normally
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user