diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2022-11-23 15:37:26 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@gmail.com> | 2022-11-24 10:42:30 +0100 |
commit | a244abc6500f9224fd96ab42eea88ad4fc51b394 (patch) | |
tree | 689c476ce22995aa53b439e8ff66e1106636e7f0 | |
parent | b509c1fae371061750475dfc41c9045749262a7c (diff) |
andorid: media-codecs-func: shellcheck: fix Expansions inside '${..}'
In ./automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh line 258:
LINE="${LINE#${TEST_FILE}}"
^----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
LINE="${LINE#"${TEST_FILE}"}"
Fix like suggested.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-x | automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh b/automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh index 20980f23..640935dd 100755 --- a/automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh +++ b/automated/android/media-codecs-functional-tests/linaro-android-userspace-tests.sh @@ -260,7 +260,7 @@ run_speech_codec() fi # Remove the test file, leaving the MD5SUMs - LINE="${LINE#${TEST_FILE}}" + LINE="${LINE#"${TEST_FILE}"}" TEST_FILE="${DATA_DIR}/${TEST_FILE}" if [ ! -f ${TEST_FILE} ]; then |