mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
shellcheck fix: tests/functional/flakes/config.sh
This commit is contained in:
parent
26a10453c3
commit
ac5615dd91
2 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
excludes = [
|
excludes = [
|
||||||
# We haven't linted these files yet
|
# We haven't linted these files yet
|
||||||
''^tests/functional/flakes/config\.sh$''
|
|
||||||
''^tests/functional/flakes/flakes\.sh$''
|
''^tests/functional/flakes/flakes\.sh$''
|
||||||
''^tests/functional/flakes/follow-paths\.sh$''
|
''^tests/functional/flakes/follow-paths\.sh$''
|
||||||
''^tests/functional/flakes/prefetch\.sh$''
|
''^tests/functional/flakes/prefetch\.sh$''
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
cp ../simple.nix ../simple.builder.sh "${config_nix}" $TEST_HOME
|
cp ../simple.nix ../simple.builder.sh "${config_nix}" "$TEST_HOME"
|
||||||
|
|
||||||
cd $TEST_HOME
|
cd "$TEST_HOME"
|
||||||
|
|
||||||
rm -f post-hook-ran
|
rm -f post-hook-ran
|
||||||
cat <<EOF > echoing-post-hook.sh
|
cat <<EOF > echoing-post-hook.sh
|
||||||
|
|
@ -37,6 +37,7 @@ if type -p script >/dev/null && script -q -c true /dev/null; then
|
||||||
else
|
else
|
||||||
echo "script is not available or not GNU-like, so we skip testing with an added tty"
|
echo "script is not available or not GNU-like, so we skip testing with an added tty"
|
||||||
fi
|
fi
|
||||||
|
# shellcheck disable=SC2235
|
||||||
(! [[ -f post-hook-ran ]])
|
(! [[ -f post-hook-ran ]])
|
||||||
TODO_NixOS
|
TODO_NixOS
|
||||||
clearStore
|
clearStore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue