From f0629261bf5aeb010ebe711b8fb7b344a93f1990 Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Mon, 15 Jan 2024 13:37:36 -0800 Subject: [PATCH] fix syntax --- model/01_access/gradient_barriers/gradient_barriers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/01_access/gradient_barriers/gradient_barriers.sh b/model/01_access/gradient_barriers/gradient_barriers.sh index f292f59b..57b48ef2 100755 --- a/model/01_access/gradient_barriers/gradient_barriers.sh +++ b/model/01_access/gradient_barriers/gradient_barriers.sh @@ -2,7 +2,7 @@ set -euxo pipefail PSQL="psql $DATABASE_URL -v ON_ERROR_STOP=1" -WSGS=$(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM bcfishpass.watershed_groups_access") +WSGS=$($PSQL -AXt -c "SELECT watershed_group_code FROM bcfishpass.parameters_habitat_method") # create table $PSQL -f sql/gradient_barriers.sql