Skip to content

Commit 302335a

Browse files
committed
fix: checksum verification path mismatch in download-libs.sh
1 parent dbde47d commit 302335a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/download-libs.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ rm -f "/tmp/$LIBS_ARCHIVE"
5050
# Verify checksums if file exists
5151
if [[ -f "$LIBS_DIR/checksums.sha256" ]]; then
5252
echo "Verifying checksums..."
53-
cd "$LIBS_DIR"
54-
if shasum -a 256 -c checksums.sha256 --quiet 2>/dev/null; then
53+
if shasum -a 256 -c "$LIBS_DIR/checksums.sha256" --quiet 2>/dev/null; then
5554
echo "Checksums OK"
5655
else
5756
echo "WARNING: Checksum verification failed!"
5857
exit 1
5958
fi
60-
cd - >/dev/null
6159
fi
6260

6361
# Mark as downloaded

0 commit comments

Comments
 (0)