We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7c32b commit 226c6f7Copy full SHA for 226c6f7
nextcloud_install_production.sh
@@ -18,7 +18,7 @@ then
18
fi
19
20
# Install curl if not existing
21
-if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" = "1" ]
+if dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -q "ok installed"
22
then
23
echo "curl OK"
24
else
@@ -27,7 +27,7 @@ else
27
28
29
# Install whiptail if not existing
30
-if [ "$(dpkg-query -W -f='${Status}' "whiptail" 2>/dev/null | grep -c "ok installed")" = "1" ]
+if dpkg-query -W -f='${Status}' "whiptail" 2>/dev/null | grep -q "ok installed"
31
32
echo "whiptail OK"
33
0 commit comments