Skip to content

Commit 226c6f7

Browse files
committed
fix whiptail
1 parent 0d7c32b commit 226c6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nextcloud_install_production.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ then
1818
fi
1919

2020
# Install curl if not existing
21-
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" = "1" ]
21+
if dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -q "ok installed"
2222
then
2323
echo "curl OK"
2424
else
@@ -27,7 +27,7 @@ else
2727
fi
2828

2929
# Install whiptail if not existing
30-
if [ "$(dpkg-query -W -f='${Status}' "whiptail" 2>/dev/null | grep -c "ok installed")" = "1" ]
30+
if dpkg-query -W -f='${Status}' "whiptail" 2>/dev/null | grep -q "ok installed"
3131
then
3232
echo "whiptail OK"
3333
else

0 commit comments

Comments
 (0)