aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-12 11:36:33 -0300
committerEuAndreh <eu@euandre.org>2022-08-12 11:36:33 -0300
commit6bed43aa5b881210c00d54c641c5797d54f71761 (patch)
treeff212986a4ac9dfb5466835e153080338a2c1098 /src/bin
parentpastebin: Auto-add _pastebins/2022-07-14-git-cleanup-command.md (diff)
downloadeuandre.org-6bed43aa5b881210c00d54c641c5797d54f71761.tar.gz
euandre.org-6bed43aa5b881210c00d54c641c5797d54f71761.tar.xz
src/bin/pb: Use file path over hard-coded $WEBSITE_DIR
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/pb4
1 files changed, 1 insertions, 3 deletions
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:-}"