Fix, not ignore, shellcheck SC1091 warnings

This is easy to fix (but we have to specify -x).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2022-04-12 16:40:31 -07:00 committed by Andrei Vagin
parent 9d2948b239
commit b1fb9f2f0b
6 changed files with 11 additions and 9 deletions

View file

@ -423,10 +423,10 @@ lint:
shellcheck --version
shellcheck scripts/*.sh
shellcheck scripts/ci/*.sh scripts/ci/apt-install
shellcheck test/others/crit/*.sh
shellcheck test/others/libcriu/*.sh
shellcheck test/others/crit/*.sh test/others/criu-coredump/*.sh
shellcheck test/others/config-file/*.sh
shellcheck -x test/others/crit/*.sh
shellcheck -x test/others/libcriu/*.sh
shellcheck -x test/others/crit/*.sh test/others/criu-coredump/*.sh
shellcheck -x test/others/config-file/*.sh
codespell
# Do not append \n to pr_perror or fail
! git --no-pager grep -E '^\s*\<(pr_perror|fail)\>.*\\n"'

View file

@ -1,6 +1,6 @@
#!/bin/bash
# shellcheck disable=SC1091,SC2015
# shellcheck disable=SC2015
set -x -e -o pipefail
@ -19,6 +19,7 @@ add-apt-repository \
./apt-install docker-ce
# shellcheck source=/dev/null
. /etc/lsb-release
# docker checkpoint and restore is an experimental feature

View file

@ -11,7 +11,7 @@
set -xbm
#shellcheck disable=SC1091
# shellcheck source=test/others/env.sh
source ../env.sh
if [ ! -d /etc/criu ]; then

View file

@ -1,8 +1,9 @@
#!/bin/bash
# shellcheck disable=SC1091,SC2002
# shellcheck disable=SC2002
set -x
# shellcheck source=test/others/env.sh
source ../env.sh
images_list=""

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -x
# shellcheck disable=SC1091
# shellcheck source=test/others/env.sh
source ../env.sh || exit 1
function gen_imgs {

View file

@ -9,7 +9,7 @@ TEST_LOG="${TEST_DIR}/test.log"
DUMP_LOG="${TEST_DIR}/dump.log"
RESTORE_LOG="${TEST_DIR}/restore.log"
# shellcheck disable=1091
# shellcheck source=test/others/env.sh
source "${MAIN_DIR}/../env.sh" || exit 1
echo "== Clean"