Skip to content

Commit

Permalink
suggestions from ShellCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed May 9, 2024
1 parent cd08c4c commit f279da3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check_reservoir_eligibility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function check_license() {
}

# Check if the license_id is a valid SPDX license and assign exit code
if ! check_license $license_id; then
if ! check_license "$license_id"; then
echo "Package is ineligible for Reservoir because the repository does not contain a valid SPDX license."
exit_code=1
fi
Expand All @@ -36,13 +36,13 @@ if [ ! -f "lake-manifest.json" ]; then
fi

# Check if the repository is private
if [ $private == "true" ]; then
if [ "$private" == "true" ]; then
echo "Package is ineligible for Reservoir because the repository is private."
exit_code=1
fi

# Check if the repository has less than 2 stars
if [ $number_of_stars -lt 2 ]; then
if [ "$number_of_stars" -lt 2 ]; then
echo "Package is ineligible for Reservoir because the repository has less than 2 stars."
exit_code=1
fi
Expand Down

0 comments on commit f279da3

Please sign in to comment.