Skip to content

Commit 21d4ba1

Browse files
committed
fix(vts): fix shebang position and variable quoting in init-kvstores.sh
- Move shebang to first line to fix SC1128 error - Add proper quoting to variable in sqlite3 command to fix SC2086 error Addresses shellcheck violations found during bash script review. Signed-off-by: Kallal Mukherjee <[email protected]>
1 parent 1a49868 commit 21d4ba1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vts/test-harness/init-kvstores.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
#!/bin/bash
12
# Copyright 2022-2023 Contributors to the Veraison project.
23
# SPDX-License-Identifier: Apache-2.0
3-
#
4-
#!/bin/bash
54

65
set -eux
76
set -o pipefail
87

98
for t in en ta po
109
do
1110
echo "CREATE TABLE kvstore ( key text NOT NULL, vals text NOT NULL );" | \
12-
sqlite3 $t-store.sql
11+
sqlite3 "${t}-store.sql"
1312
done

0 commit comments

Comments
 (0)