mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
9d2948b239
commit
b1fb9f2f0b
6 changed files with 11 additions and 9 deletions
8
Makefile
8
Makefile
|
|
@ -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"'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
set -xbm
|
||||
|
||||
#shellcheck disable=SC1091
|
||||
# shellcheck source=test/others/env.sh
|
||||
source ../env.sh
|
||||
|
||||
if [ ! -d /etc/criu ]; then
|
||||
|
|
|
|||
|
|
@ -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=""
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue