mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-01 08:20:18 +00:00
Prevent clean_plugins from deleting root
If tmux was not yet configured to initialize the Tmux Plugin Manager, the variable for the plugin home was not being set. This was resulting in a `rm -rf /` which is pretty nuclear. Fixes: https://github.com/tmux-plugins/tpm/issues/58
This commit is contained in:
1 parent
cfaf15b768
commit
1579534c2e
2 files changed
+14
No files matched your search
@@ -60,6 +60,7 @@ update_plugins() {
|
||||
}
|
||||
|
||||
main() {
|
||||
ensure_tpm_path_exists
|
||||
if [ "$1" == "all" ]; then
|
||||
update_all
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user