[Bugs] [Bug 1476785] New: scripts: invalid test in S32gluster_enable_shared_storage.sh
bugzilla at redhat.com
bugzilla at redhat.com
Mon Jul 31 13:16:21 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1476785
Bug ID: 1476785
Summary: scripts: invalid test in
S32gluster_enable_shared_storage.sh
Product: GlusterFS
Version: mainline
Component: scripts
Assignee: bugs at gluster.org
Reporter: kkeithle at redhat.com
CC: bugs at gluster.org
Description of problem:
line 5:
if [ ! "$key" -eq "enable-shared-storage" -o "$key" -eq
"cluster.enable-shared-storage" ]; then
man page for test(1) says -eq takes two integer arguments.
The correct syntax should be
if [ "$key" != "enable-shared-storage" -o "$key" =
"cluster.enable-shared-storage" ]; then
Or is it supposed to be:
if [ ! ( "$key" = "enable-shared-storage" -o "$key" =
"cluster.enable-shared-storage" ) ]; then
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list