Jelajahi Sumber

ci: fix sh include

Stéphane Lepin 5 tahun lalu
induk
melakukan
2c0b0220cd
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 2 1
      ci/linux/package-ubuntu.sh
  2. 2 1
      ci/macos/package-macos.sh

+ 2 - 1
ci/linux/package-ubuntu.sh

@@ -2,7 +2,8 @@
 
 set -e
 
-source ../ci_includes.generated.sh
+script_dir=$(dirname "$0")
+source "$script_dir/../ci_includes.generated.sh"
 
 export GIT_HASH=$(git rev-parse --short HEAD)
 export PKG_VERSION="1-$GIT_HASH-$BRANCH_SHORT_NAME-git"

+ 2 - 1
ci/macos/package-macos.sh

@@ -2,7 +2,8 @@
 
 set -e
 
-source ../ci_includes.generated.sh
+script_dir=$(dirname "$0")
+source "$script_dir/../ci_includes.generated.sh"
 
 OSTYPE=$(uname)