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 8d2a61d commit 658feccCopy full SHA for 658fecc
1 file changed
scripts/sync-compat.sh
@@ -33,7 +33,7 @@ for arg in "$@"; do
33
done
34
35
# Extract DefaultCopilotVersion from Go constants file
36
-COPILOT_VERSION=$(grep -oP '^\s*const DefaultCopilotVersion\s+Version\s*=\s*"\K[^"]+' "$CONSTANTS_FILE")
+COPILOT_VERSION=$(grep -E '^\s*const DefaultCopilotVersion' "$CONSTANTS_FILE" | sed -E 's/.*"([^"]+)".*/\1/')
37
if [ -z "$COPILOT_VERSION" ]; then
38
echo "Error: could not extract DefaultCopilotVersion from $CONSTANTS_FILE" >&2
39
exit 1
0 commit comments