When I run the 'rcons' command with no argument I get two shell syntax
errors because the missing quotes in if statements:
root@bg-adm:~ # rcons
/opt/xcat/bin/rcons: line 2: [: =: unary operator expected
/opt/xcat/bin/rcons: line 9: [: =: unary operator expected
I'm runnng the latest 'stable' build: xCAT-client-2.2.1-snap200905282320
The rcons command should be changed and the arguments to the if commands
properly quoted:
Old:
root@bg-adm:~ # head /opt/xcat/bin/rcons
#!/bin/sh
if [ $1 = -h ]; then
Fixed:
root@bg-adm:~ # head /opt/xcat/bin/rcons
#!/bin/sh
if [ "$1" = -h ]; then
Bruce
General
v2.2
Public
|
Date: 2009-09-16 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-09-01 15:57 Fixed in xCAT 2.3 in svn commit 4067. A snap build containing this fix |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2009-09-16 02:20 | sf-robot |
| allow_comments | 1 | 2009-09-16 02:20 | sf-robot |
| close_date | 2009-09-01 15:57 | 2009-09-16 02:20 | sf-robot |
| status_id | Open | 2009-09-01 15:57 | bp-sawyers |
| resolution_id | None | 2009-09-01 15:57 | bp-sawyers |
| close_date | - | 2009-09-01 15:57 | bp-sawyers |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use