File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# 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)
5
5
6
6
# Extract the first instance of URL using grep, cut, and sed to trim leading whitespace
7
7
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
10
10
escaped_url=$( printf ' %s\n' " $url " | sed -e ' s/[\/&]/\\&/g' )
11
11
12
12
# 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
You can’t perform that action at this time.
0 commit comments