Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Array element access in bash MUST be enclosed with {}.
[fs/lustre-release.git]
/
lustre-iokit
/
sgpdd-survey
/
sgpdd-survey
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