summaryrefslogtreecommitdiff
path: root/src/org/stsci/OSInfo.groovy
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-01-24 21:27:41 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-01-24 21:28:15 -0500
commit7f9fe6def81ebe837a5551b06ff5c7e759598555 (patch)
tree8b852d29952c9880a18d3e39bca8f350f4e53bef /src/org/stsci/OSInfo.groovy
parent9c709674182112fdb693c6bcb53b48db2823e0d3 (diff)
downloadgroovy-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.groovy2
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