Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Ar/RevInfo/getRevInfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ VAR CONSTANT
uncommittedChanges : STRING[80] := '$(git diff --shortstat)';
buildDate : STRING[80] := '$(date +"%Y-%m-%d %H:%M:%S %z")';
buildConfiguration : STRING[80] := '${AS_CONFIGURATION}';
builder : STRING[80] := '${AS_USER_NAME}';
builder : STRING[80] := '$(echo "${AS_USER_NAME}" | sed 's/\$//g')';

Copilot AI Apr 14, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quoting in this line is broken: the outer single-quoted string for the .var value is terminated by the inner sed 's/\$//g', which will cause a shell syntax error and/or generate an invalid RevInfo.var. Use a quoting-safe approach (e.g., shell parameter expansion like ${AS_USER_NAME%\$} to strip a trailing $, or keep sed but quote it with double-quotes and escape $). Also consider stripping only a trailing $ rather than removing all $ characters.

Suggested change
builder : STRING[80] := '$(echo "${AS_USER_NAME}" | sed 's/\$//g')';
builder : STRING[80] := '${AS_USER_NAME%\$}';

Copilot uses AI. Check for mistakes.
END_VAR
EOF

Expand Down