Skip to content

Commit

Permalink
Force required variables to not be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyicker committed Aug 17, 2023
1 parent 02f6a7c commit 9c9e962
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .scripts/dependency_report_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ while getopts ":m:c:" OPT; do
;;
esac
done
if [ -z "${MODULE+x}" ]; then
print_usage
exit 1
fi
if [ -z "${CONFIGURATION+x}" ]; then
print_usage
exit 1
fi


read -r -d '' -a WITH_ADJUSTED < <(./gradlew --console=plain "$MODULE":dependencies --configuration "$CONFIGURATION" | grep --color=never -o "\S*:.*:.*" | grep --color=never -v "/" | awk 'NR > 1' | tr -d " (*)" && printf '\0' )

Expand Down

0 comments on commit 9c9e962

Please sign in to comment.