Skip to content

Commit 13007fb

Browse files
Implement shellcheck recommendations
1 parent 02d27f1 commit 13007fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/postgresql-client/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org
4141
apt update --yes
4242
apt install --no-install-recommends --yes postgresql-client-${POSTGRESQL_VERSION}
4343

44-
if ! [ -z $curl_installed ]; then
44+
if [ -n "${curl_installed}" ]; then
4545
apt purge curl --autoremove --yes
4646
fi
4747

48-
if ! [ -z $gpg_installed ]; then
48+
if [ -n "${gpg_installed}" ]; then
4949
apt purge gpg --autoremove --yes
5050
fi

0 commit comments

Comments
 (0)