shellcheck: prevent globbing and word splitting in package shell scripts
This commit is contained in:
parent
c3b97e6728
commit
acd341426a
7 changed files with 22 additions and 22 deletions
|
|
@ -60,18 +60,18 @@ let
|
|||
buildInputs = [ python ];
|
||||
|
||||
buildCommand = ''
|
||||
cp --no-preserve=mode -r ${src}/${name} $out
|
||||
cd $out
|
||||
cp --no-preserve=mode -r '${src}/${name}' "$out"
|
||||
cd "$out"
|
||||
${lib.optionalString (plugin ? patchRequirements) ''
|
||||
substituteInPlace requirements.txt ${plugin.patchRequirements}
|
||||
''}
|
||||
|
||||
# Check that requirements are met
|
||||
PYTHONPATH=${toString python}/${python.sitePackages} \
|
||||
PYTHONPATH='${toString python}/${python.sitePackages}' \
|
||||
${pkgs.python3Packages.pip}/bin/pip install -r requirements.txt --no-cache --no-index
|
||||
|
||||
chmod +x ${script}
|
||||
patchShebangs ${script}
|
||||
chmod +x '${script}'
|
||||
patchShebangs '${script}'
|
||||
'';
|
||||
|
||||
passthru.path = "${drv}/${script}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue