Change back to the build_scripts dir before the first loop in build_license_directory.sh file

This commit is contained in:
Patrick Maslana 2023-05-10 20:39:33 -07:00
parent 02a71d0f8f
commit a3e88a2583
No known key found for this signature in database

View File

@ -21,6 +21,8 @@ IFS=$'\n' read -rd '' -a licenses_array <<< "$license_list"
#print the contents of the array
printf '%s\n' "${licenses_array[@]}"
cd ../build_scripts || exit' or 'cd ... || return
for i in "${licenses_array[@]}"; do
if [ -e "$i" ]; then
dirname="licenses/$(dirname "$i" | awk -F'/' '{print $NF}')"
@ -32,9 +34,6 @@ for i in "${licenses_array[@]}"; do
fi
done
mv licenses/ ../dist
cd ../build_scripts || exit' or 'cd ... || return
python3 -m venv ../venv
. ../venv/bin/activate
# PULL IN THE LICENSES FROM PIP-LICENSE