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 a108a8aCopy full SHA for a108a8a
scripts/sync-go-version.sh
@@ -68,7 +68,8 @@ 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)
72
+ current=${current:-(not found)}
73
echo "Mismatch: $(realpath "$file")"
74
echo " have: $current"
75
echo " want: $expected_value"
0 commit comments