Skip to content

Commit 479fc9c

Browse files
committed
shellcheck: SC2016: Expressions don't expand in single quotes, use double quotes for that.
Signed-off-by: Akihiro Suda <[email protected]>
1 parent be32a12 commit 479fc9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hack/test-example.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ fi
121121

122122
if [[ -n "${CHECKS["restart"]}" ]]; then
123123
INFO "Create file in the guest home directory and verify that it still exists after a restart"
124+
# shellcheck disable=SC2016
124125
limactl shell "$NAME" sh -c 'touch $HOME/sweet-home'
125126

126127
INFO "Stopping \"$NAME\""
@@ -129,6 +130,7 @@ if [[ -n "${CHECKS["restart"]}" ]]; then
129130
INFO "Restarting \"$NAME\""
130131
limactl start "$NAME"
131132

133+
# shellcheck disable=SC2016
132134
if ! limactl shell "$NAME" sh -c 'test -f $HOME/sweet-home'; then
133135
ERROR "Guest home directory does not persist across restarts"
134136
exit 1

0 commit comments

Comments
 (0)