Skip to content

Commit ac55fb3

Browse files
committed
chore: change relative path for Make context
Signed-off-by: Christopher Phillips <[email protected]>
1 parent bc181e9 commit ac55fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Run your command and capture the output
4-
output=$(go run ../../cmd/grype/main.go db list)
4+
output=$(go run ./cmd/grype/main.go db list)
55

66
# Extract the first instance of URL using grep, cut, and sed to trim leading whitespace
77
url=$(echo "$output" | grep -m 1 -o 'URL: .*' | cut -d' ' -f2- | sed 's/^[[:space:]]*//')
@@ -10,4 +10,4 @@ url=$(echo "$output" | grep -m 1 -o 'URL: .*' | cut -d' ' -f2- | sed 's/^[[:spac
1010
escaped_url=$(printf '%s\n' "$url" | sed -e 's/[\/&]/\\&/g')
1111

1212
# Replace TEST_DB_URL in specific Makefile using sed
13-
sed -i '' -e "s|^TEST_DB_URL = .*|TEST_DB_URL = $escaped_url|" ../../test/quality/Makefile
13+
sed -i '' -e "s|^TEST_DB_URL = .*|TEST_DB_URL = $escaped_url|" ./test/quality/Makefile

0 commit comments

Comments
 (0)