Skip to content

Commit b59951b

Browse files
committed
Unify file existence checks
1 parent ae77951 commit b59951b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

check-library-support.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ fi
99
GAV="$1"
1010
IFS=':' read -r GROUP ARTIFACT VERSION <<< "$GAV"
1111

12-
METADATA_DIR="metadata/$GROUP/$ARTIFACT"
13-
INDEX_FILE="$METADATA_DIR/index.json"
12+
INDEX_FILE="metadata/$GROUP/$ARTIFACT/index.json"
1413

15-
if [ ! -d "$METADATA_DIR" ] || [ ! -f "$INDEX_FILE" ]; then
14+
if [ ! -f "$INDEX_FILE" ]; then
1615
echo "Library $GAV is NOT supported by the GraalVM Reachability Metadata repository."
1716
exit 1
1817
fi

0 commit comments

Comments
 (0)