We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e352fa commit bd88de4Copy full SHA for bd88de4
scripts/sync-go-version.sh
@@ -68,7 +68,7 @@ check_file() {
68
69
if ! grep -q "$expected_pattern" "$file"; then
70
local current
71
- current=$(grep "$search_pattern" "$file" 2>/dev/null | head -1 || echo "(not found)")
+ current=$(grep "$search_pattern" "$file" 2>/dev/null | head -1 | xargs || echo "(not found)")
72
echo "Mismatch: $(realpath "$file")"
73
echo " have: $current"
74
echo " want: $expected_value"
0 commit comments