Skip to content

Commit

Permalink
qa: fix: Fix build artifacts generation program errors with "script_d…
Browse files Browse the repository at this point in the history
…ir: unbound variable" message

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
  • Loading branch information
brlin-tw committed Oct 15, 2023
1 parent 3473926 commit 621fd03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions continuous-integration/generate-build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ set \
-o errexit \
-o nounset

script="${BASH_SOURCE[0]}"
if ! script="$(
realpath \
--strip \
"${script}"
)"; then
printf \
'Error: Unable to determine the absolute path of the program.\n' \
1>&2
exit 1
fi

script_dir="${script%/*}"

if ! test -e "${script_dir}/venv"; then
printf \
'Info: Initializing the Python virtual environment...\n'
Expand Down

0 comments on commit 621fd03

Please sign in to comment.