add command_exists
This commit is contained in:
parent
f207a7f2b5
commit
e85db23b7a
@ -109,6 +109,8 @@ configure_tmux() {
|
||||
}
|
||||
|
||||
configure_docker() {
|
||||
command_exists docker && return
|
||||
|
||||
if confirm_action "要安装 docker 吗?" "N"; then
|
||||
# 卸载旧版本
|
||||
sudo apt remove docker docker-engine docker.io
|
||||
|
||||
Loading…
Reference in New Issue
Block a user