From 6bed43aa5b881210c00d54c641c5797d54f71761 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 12 Aug 2022 11:36:33 -0300 Subject: src/bin/pb: Use file path over hard-coded $WEBSITE_DIR --- src/bin/pb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/bin/pb') diff --git a/src/bin/pb b/src/bin/pb index 78165b9..efbf8fc 100755 --- a/src/bin/pb +++ b/src/bin/pb @@ -1,8 +1,7 @@ #!/bin/sh set -eu - -WEBSITE_DIR=~/dev/libre/euandre.org +cd -- "$(dirname -- "$(readlink -f -- "$0")")"/../../ usage() { @@ -127,7 +126,6 @@ assert_arg() { fi } -cd "$WEBSITE_DIR" assert_arg "${TITLE:-}" '-t TITLE' LANGUAGE="${LANGUAGE:-}" -- cgit v1.2.3