mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
shellcheck fix functional/dependencies.builder0.sh
This commit is contained in:
parent
9f26c20ebd
commit
121a8ab3ec
2 changed files with 10 additions and 7 deletions
|
|
@ -113,7 +113,6 @@
|
||||||
''^tests/functional/config\.sh$''
|
''^tests/functional/config\.sh$''
|
||||||
''^tests/functional/db-migration\.sh$''
|
''^tests/functional/db-migration\.sh$''
|
||||||
''^tests/functional/debugger\.sh$''
|
''^tests/functional/debugger\.sh$''
|
||||||
''^tests/functional/dependencies\.builder0\.sh$''
|
|
||||||
''^tests/functional/dependencies\.sh$''
|
''^tests/functional/dependencies\.sh$''
|
||||||
''^tests/functional/dump-db\.sh$''
|
''^tests/functional/dump-db\.sh$''
|
||||||
''^tests/functional/dyn-drv/build-built-drv\.sh$''
|
''^tests/functional/dyn-drv/build-built-drv\.sh$''
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,20 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "${input1: -2}" = /. ]
|
[ "${input1: -2}" = /. ]
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "${input2: -2}" = /. ]
|
[ "${input2: -2}" = /. ]
|
||||||
|
|
||||||
mkdir $out
|
# shellcheck disable=SC2154
|
||||||
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
|
mkdir "$out"
|
||||||
|
echo "$(cat "$input1"/foo)$(cat "$input2"/bar)" > "$out"/foobar
|
||||||
|
|
||||||
ln -s $input2 $out/reference-to-input-2
|
ln -s "$input2" "$out"/reference-to-input-2
|
||||||
|
|
||||||
# Self-reference.
|
# Self-reference.
|
||||||
ln -s $out $out/self
|
ln -s "$out" "$out"/self
|
||||||
|
|
||||||
# Executable.
|
# Executable.
|
||||||
echo program > $out/program
|
echo program > "$out"/program
|
||||||
chmod +x $out/program
|
chmod +x "$out"/program
|
||||||
|
|
||||||
echo FOO
|
echo FOO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue