diff --git a/tools/publish.sh b/tools/publish.sh index d90ceb87..ebec0307 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -1,6 +1,7 @@ #!/bin/bash set -euo pipefail IFS=$'\n\t' +cd "$(dirname "$0")"/.. # Publish a new release. # @@ -10,8 +11,6 @@ IFS=$'\n\t' # NOTE: # - This script requires parse-changelog -cd "$(cd "$(dirname "$0")" && pwd)"/.. - bail() { echo >&2 "error: $*" exit 1 diff --git a/tools/tidy.sh b/tools/tidy.sh index abe563d2..5cc6bc0a 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -2,6 +2,7 @@ # shellcheck disable=SC2046 set -euo pipefail IFS=$'\n\t' +cd "$(dirname "$0")"/.. # USAGE: # ./tools/tidy.sh @@ -11,8 +12,6 @@ IFS=$'\n\t' # - prettier # - shellcheck -cd "$(cd "$(dirname "$0")" && pwd)"/.. - x() { local cmd="$1" shift