Skip to content

Commit

Permalink
chore: skip cleaning if path doesn't exist
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 committed Jan 12, 2024
1 parent 3a404af commit ca3077d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ clean_apps() {
for app in "${ALL_PATHS[@]}"; do
if [[ ! -d "${path}" ]]; then
printf "'%s' does not exist! Clean skipped ...\n" "${path}"
else
printf "\nRunning 'make clean' in %s ... \n" "${app}"
pushd "${app}" &> /dev/null || exit 1
make clean
popd &> /dev/null || exit 1
fi
printf "\nRunning 'make clean' in %s ... \n" "${app}"
pushd "${app}" &> /dev/null || exit 1
make clean
popd &> /dev/null || exit 1
done
printf "\nRunning 'make clean' ... [DONE]\n"
}
Expand Down

0 comments on commit ca3077d

Please sign in to comment.