Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233c692
)
Array element access in bash MUST be enclosed with {}.
author
brian
<brian>
Fri, 21 Oct 2005 22:33:34 +0000
(22:33 +0000)
committer
brian
<brian>
Fri, 21 Oct 2005 22:33:34 +0000
(22:33 +0000)
lustre-iokit/sgpdd-survey/sgpdd-survey
patch
|
blob
|
history
diff --git
a/lustre-iokit/sgpdd-survey/sgpdd-survey
b/lustre-iokit/sgpdd-survey/sgpdd-survey
index
16709e3
..
135a87e
100755
(executable)
--- a/
lustre-iokit/sgpdd-survey/sgpdd-survey
+++ b/
lustre-iokit/sgpdd-survey/sgpdd-survey
@@
-43,7
+43,7
@@
i=0
devs=()
for d in $scsidevs; do
devs[$i]=`sg_map | awk "{if ($ 2 == \"$d\") print $ 1}"`
- if [ -z "$
devs[$i]
" ]; then
+ if [ -z "$
{devs[$i]}
" ]; then
echo "Can't find SG device for $d"
exit 1
fi