Skip to content

Commit ad032ad

Browse files
authored
change to is_this_installed
1 parent 0ee09ee commit ad032ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/wordpress_update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ apt dist-upgrade -y
6565
print_text_in_color "$ICyan" "Trying to upgrade the Redis PECL extenstion..."
6666
if ! pecl list | grep redis >/dev/null 2>&1
6767
then
68-
if dpkg -l | grep php"$PHPVER" > /dev/null 2>&1
68+
if is_this_installed php"$PHPVER"
6969
then
7070
install_if_not php"$PHPVER"-dev
7171
else
@@ -85,7 +85,7 @@ then
8585
fi
8686
elif pecl list | grep redis >/dev/null 2>&1
8787
then
88-
if dpkg -l | grep php"$PHPVER" > /dev/null 2>&1
88+
if is_this_installed php"$PHPVER"
8989
then
9090
install_if_not php"$PHPVER"-dev
9191
else
@@ -104,7 +104,7 @@ then
104104
fi
105105

106106
# Upgrade APCu and igbinary
107-
if dpkg -l | grep php"$PHPVER"-dev > /dev/null 2>&1
107+
if is_this_installed php"$PHPVER"
108108
then
109109
if [ -f "$PHP_INI" ]
110110
then

0 commit comments

Comments
 (0)