diff options
author | sengedev | 2024-03-08 23:55:10 +0800 |
---|---|---|
committer | sengedev | 2024-03-08 23:55:10 +0800 |
commit | 9e932e06bf105b733971d1be2562843637276c65 (patch) | |
tree | d4bc7f6053bd41d044f667c8d966c4e144d3c5bd | |
parent | 4f44e0229c3e088fc3c81874f7b00e4d648db963 (diff) | |
download | aur-9e932e06bf105b733971d1be2562843637276c65.tar.gz |
Fix syntax error
-rw-r--r-- | 1panel.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/1panel.install b/1panel.install index a00041c92d14..c6bed080dc1c 100644 --- a/1panel.install +++ b/1panel.install @@ -35,12 +35,12 @@ post_install() { echo -e "Password: $_1panel_password" echo -e "If you are not Chinese user, please click \033[32m'中文(简体)'\033[0m and switch it to English." # 判断docker和docker-compose安装 - if [ pacman -Ql docker ]; then + if pacman -Qs docker >/dev/null 2>&1; then echo -e "Docker is installed correctly." else: echo -e "\033[31mWarning: Docker is not installed, please install it, or most of the features of this package will not be available.\033[0m" fi - if [ pacman -Ql docker-compose ]; then + if pacman -Qs docker-compose >/dev/null 2>&1; then echo -e "Docker Compose is installed correctly." else: echo -e "\033[31mWarning: Docker Compose is not installed, please install it, or 1Panel application store will not be avaliable.\033[0m" |