mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #14073 from fzakaria/fzakaria/shellcheck-functional-dependencies.builder0
shellcheck fix functional/dependencies.builder0.sh
This commit is contained in:
commit
2898dbe2d9
2 changed files with 10 additions and 7 deletions
|
|
@ -1,16 +1,20 @@
|
|||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2154
|
||||
[ "${input1: -2}" = /. ]
|
||||
# shellcheck disable=SC2154
|
||||
[ "${input2: -2}" = /. ]
|
||||
|
||||
mkdir $out
|
||||
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
|
||||
# shellcheck disable=SC2154
|
||||
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.
|
||||
ln -s $out $out/self
|
||||
ln -s "$out" "$out"/self
|
||||
|
||||
# Executable.
|
||||
echo program > $out/program
|
||||
chmod +x $out/program
|
||||
echo program > "$out"/program
|
||||
chmod +x "$out"/program
|
||||
|
||||
echo FOO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue