3
0
Fork 0
forked from mirrors/nixpkgs

builder.sh: shellcheck 2129

https://github.com/koalaman/shellcheck/wiki/SC2129
This commit is contained in:
happysalada 2021-06-22 09:58:36 +09:00 committed by Raphael Megzari
parent 4d0e398491
commit e39ee04d97

View file

@ -6,12 +6,14 @@ done
mkdir "$out"
echo "export SHELL=$shell" > $out/setup
echo "initialPath=\"$initialPath\"" >> $out/setup
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" >> $out/setup
echo "defaultBuildInputs=\"$defaultBuildInputs\"" >> $out/setup
echo "$preHook" >> $out/setup
cat "$setup" >> $out/setup
{
echo "export SHELL=$shell"
echo "initialPath=\"$initialPath\""
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\""
echo "defaultBuildInputs=\"$defaultBuildInputs\""
echo "$preHook"
cat "$setup"
} > "$out/setup"
# Allow the user to install stdenv using nix-env and get the packages
# in stdenv.