View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004092 | OpenFOAM | Bug | public | 2024-06-05 14:39 | 2024-06-18 08:09 |
Reporter | BrendenEpps | Assigned To | chris | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OpenFOAMv11 for MacOS | OS | Mac | OS Version | 10.14.6 |
Product Version | 11 | ||||
Summary | 0004092: Can not specify volume size with "openfoam-macos-file-system" script | ||||
Description | Problem: The "openfoam-macos-file-system" script has a bug in the "-s" option, so users are not able to specify the desired size of the volume. | ||||
Steps To Reproduce | * Steps to reproduce (as copied from https://openfoam.org/download/11-macos/). In MacOS Terminal: sudo curl -o /usr/local/bin/openfoam-macos-file-system http://dl.openfoam.org/docker/openfoam-macos-file-system sudo chmod 755 /usr/local/bin/openfoam-macos-file-system openfoam-macos-file-system -s 20 create * Result: Script throws error message (followed by Usage instructions): "Specified volume size, in GB, must be greater than 2 (GB)" | ||||
Additional Information | * Cause of Error: The following block is intended to execute the usage command if $VOLUME_SIZE is less than 2 GB (i.e. if the conditional is true). However, the usage command is executed if the conditional is FALSE! [ "$VOLUME_SIZE" -lt 2 ] || \ usage "Specified volume size, in GB, must be greater than 2 (GB)" * Solution: The line should be edited to [ "$VOLUME_SIZE" -ge 2 ] || \ With that change, the bug is fixed and the script works as intended. | ||||
Tags | No tags attached. | ||||
|
I have made the fix and cleaned up the openfoam-macos-file-system script generally. https://dl.openfoam.org/docker/ We do not have a Mac, so cannot test this, so any feedback appreciated. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-06-05 14:39 | BrendenEpps | New Issue | |
2024-06-11 09:42 | wyldckat | Assigned To | => chris |
2024-06-11 09:42 | wyldckat | Status | new => assigned |
2024-06-11 09:44 | wyldckat | Relationship added | related to 0004062 |
2024-06-18 08:09 | chris | Status | assigned => resolved |
2024-06-18 08:09 | chris | Resolution | open => fixed |
2024-06-18 08:09 | chris | Note Added: 0013266 |