From 501d38b781098c939fdc6fcf4f2001182f7d0a26 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 5 Jun 2023 20:43:20 +0000 Subject: [PATCH] upgrade-postgresql: Check for undefined variables. --- scripts/setup/upgrade-postgresql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresql index b103f0eb17..fcc31bce17 100755 --- a/scripts/setup/upgrade-postgresql +++ b/scripts/setup/upgrade-postgresql @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -eo pipefail +set -euo pipefail if [ "$EUID" -ne 0 ]; then echo "Error: This script must be run as root" >&2