40b013f5f119be27bd2fdece431cf4979193bd25
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
lib: delete upgrade lock in upgrade_oh_my_zsh
Provides a different solution to #8332 and #8333
Diff
1diff --git a/lib/functions.zsh b/lib/functions.zsh
2index 61dfa478009beb5832cc06986b50be7554832440..91e9cf895e1c1e446b1411fe763667bcabd8e4d9 100644
3--- a/lib/functions.zsh
4+++ b/lib/functions.zsh
5@@ -3,11 +3,12 @@ function zsh_stats() {
6 }
7
8 function uninstall_oh_my_zsh() {
9- env ZSH=$ZSH sh $ZSH/tools/uninstall.sh
10+ env ZSH="$ZSH" sh "$ZSH/tools/uninstall.sh"
11 }
12
13 function upgrade_oh_my_zsh() {
14- env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
15+ env ZSH="$ZSH" sh "$ZSH/tools/upgrade.sh"
16+ rm -rf "$ZSH/log/update.lock"
17 }
18
19 function take() {