Fix ./manifests/scripts/bundle.sh path resolution

The script now uses the path of the script file itself to determine the
manifests directory paths. This fixes an issue when building the AUR
packages where the check() phase would fail because the git repository
of the package would be used and this would generate invalid paths.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
pull/2213/head
Aurel Canciu 3 years ago
parent 062c1e59a9
commit b75dbf8c70
No known key found for this signature in database
GPG Key ID: AB25339971E6F81E

@ -16,8 +16,8 @@
set -e
IN_PATH=${1:-"$(git rev-parse --show-toplevel)/manifests"}
OUT_PATH=${2:-"$(git rev-parse --show-toplevel)/cmd/flux/manifests"}
IN_PATH=${1:-"$(realpath $(dirname "${BASH_SOURCE[0]}")/../..)/manifests"}
OUT_PATH=${2:-"$(realpath $(dirname "${BASH_SOURCE[0]}")/../..)/cmd/flux/manifests"}
TAR=${3}
info() {

Loading…
Cancel
Save