Skip to content

Commit

Permalink
chore: fix clean_apps for installations without all backendsc
Browse files Browse the repository at this point in the history
If one of all the possible backends is not installed, `clean_apps` inside `build.sh` crashes.
  • Loading branch information
mryel00 committed Jan 12, 2024
1 parent 8b336ac commit 1c0a7b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ clone_apps() {
### Run 'make clean' in cloned folders
clean_apps() {
for app in "${ALL_PATHS[@]}"; do
if [[ ! -d "${path}" ]]; then
printf "'%s' does not exist! Clean skipped ...\n" "${path}"
fi
printf "\nRunning 'make clean' in %s ... \n" "${app}"
pushd "${app}" &> /dev/null || exit 1
make clean
Expand Down

0 comments on commit 1c0a7b0

Please sign in to comment.