summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsengedev2024-03-08 23:55:10 +0800
committersengedev2024-03-08 23:55:10 +0800
commit9e932e06bf105b733971d1be2562843637276c65 (patch)
treed4bc7f6053bd41d044f667c8d966c4e144d3c5bd
parent4f44e0229c3e088fc3c81874f7b00e4d648db963 (diff)
downloadaur-9e932e06bf105b733971d1be2562843637276c65.tar.gz
Fix syntax error
-rw-r--r--1panel.install4
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"