Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unquoted environment variable in check_os.sh #2469

Merged
merged 1 commit into from Feb 1, 2024

Conversation

strRM
Copy link
Contributor

@strRM strRM commented Jan 31, 2024

CMake failed to setup the build properly, because the environment variable ID was tested in check_os.sh without quoting it. This led to the error souffle/sh/check_os.sh: line 15: [: too many arguments. In my case, that variable was to ID_LIKE="RHEL CENTOS FEDORA", which expands to multiple words when done without quoting.

On my RHEL system, ID is initially set to  'ID_LIKE="RHEL CENTOS FEDORA"', which, when expanded in the if-statement, turns into  this:
if [ -z ID_LIKE=RHEL CENTOS FEDORA ]; then and causes the error:
`souffle/sh/check_os.sh: line 15: [: too many arguments`

It is necessary to quote $ID
@strRM strRM changed the title Fix unquoted environment variable check_os.sh Fix unquoted environment variable in check_os.sh Jan 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (42e432b) 78.19% compared to head (1f4f749) 78.24%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2469      +/-   ##
==========================================
+ Coverage   78.19%   78.24%   +0.05%     
==========================================
  Files         486      486              
  Lines       32423    32423              
==========================================
+ Hits        25352    25369      +17     
+ Misses       7071     7054      -17     

see 4 files with indirect coverage changes

@quentin quentin merged commit dc8ecf8 into souffle-lang:master Feb 1, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants