]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/srp/rc: Fix a shellcheck warning
authorBart Van Assche <bvanassche@acm.org>
Thu, 16 Jul 2020 19:04:54 +0000 (12:04 -0700)
committerOmar Sandoval <osandov@osandov.com>
Sat, 18 Jul 2020 18:08:25 +0000 (11:08 -0700)
Fix the following shellcheck warning:

tests/srp/rc:519:11: warning: The = here is literal. To assign by index, use
( [index]=value ) with no spaces. To keep as literal, quote it. [SC2191]

Reported-by: Shin'ichiro Kawasaki
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
tests/srp/rc

index e19bf79aff6ea1cd3374145553bca594ca6c9d25..4013e951476714446d033ce4decab9703511faf1 100755 (executable)
@@ -516,7 +516,7 @@ start_lio_srpt() {
        i=0
        for r in "${vdev_path[@]}"; do
                if [ -b "$(readlink -f "$r")" ]; then
-                       oflag=(oflag=direct)
+                       oflag=("oflag=direct")
                else
                        oflag=()
                fi