diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-24 21:27:41 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-24 21:28:15 -0500 |
| commit | 7f9fe6def81ebe837a5551b06ff5c7e759598555 (patch) | |
| tree | 8b852d29952c9880a18d3e39bca8f350f4e53bef /src/org/stsci/OSInfo.groovy | |
| parent | 9c709674182112fdb693c6bcb53b48db2823e0d3 (diff) | |
| download | groovy-sandbox-7f9fe6def81ebe837a5551b06ff5c7e759598555.tar.gz | |
Uses pair assignment instead of k,v; Add remove function
Signed-off-by: Joseph Hunkeler <jhunkeler@gmail.com>
Diffstat (limited to 'src/org/stsci/OSInfo.groovy')
| -rw-r--r-- | src/org/stsci/OSInfo.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/stsci/OSInfo.groovy b/src/org/stsci/OSInfo.groovy index 5d6c93b..04375f8 100644 --- a/src/org/stsci/OSInfo.groovy +++ b/src/org/stsci/OSInfo.groovy @@ -8,7 +8,7 @@ class OSInfo implements Serializable { OSInfo () { name = 'uname -s'.execute().text.trim() if (name == 'Darwin') { name = 'MacOSX' } - arch = 'uname -p'.execute().text.trim() + arch = 'uname -m'.execute().text.trim() if (arch.matches('^i.*86$')) { arch = 'x86' } this.name = name |
