Skip to content

Commit

Permalink
Compute script_dir in a function to not "leak" it
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Oct 11, 2023
1 parent 4fa2fae commit 0936bbf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/buildserver-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Buildserver configuration. Runtime values are defined here instead of
# the scripts where they are used.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function script_dir {
( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
}

# Which gpg key to sign things with
export CODE_SIGNING_KEY_FINGERPRINT="A1198702FC3E0A09A9AE5B75D5A1D4F266DE8DDF"
Expand All @@ -15,7 +17,8 @@ SUPPORTED_DEB_CODENAMES+=("jammy" "focal" "lunar")
export SUPPORTED_DEB_CODENAMES

# Where to store deb repositories locally when building releases
export DEB_REPOSITORY_ARCHIVE_DIR="$SCRIPT_DIR/deb"
# shellcheck disable=SC2155
export DEB_REPOSITORY_ARCHIVE_DIR="$(script_dir)/deb"

# Servers to upload Linux deb/rpm repositories to
export DEV_LINUX_REPOSITORY_SERVERS=("se-got-cdn-001.devmole.eu" "se-got-cdn-002.devmole.eu")
Expand Down

0 comments on commit 0936bbf

Please sign in to comment.