Skip to content

Commit 29b7643

Browse files
authored
carry forward exit code of id command (#365)
1 parent ca781d7 commit 29b7643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/docker/Dockerfile.debian-artifact-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ RUN mkdir -p ${RELEASE_DIR}$HOME/.pgrx && \
128128
RUN TOOLCHAIN_VER=$(</tmp/.toolchain-ver) && cat <<EOF > /tmp/preinst
129129
#!/usr/bin/env bash
130130

131-
if ! id -u postgres 2&> /dev/null; then
131+
if ! id -u postgres 2>&1 > /dev/null; then
132132
echo "[!] User 'postgres' does not exist. Have the official Postgres packages been installed yet?"
133133
exit 1
134134
fi

0 commit comments

Comments
 (0)