mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-13 23:53:26 +00:00
Merge pull request #18019 from mayflower/substituteInPlace-error
stdenv substitute: fail on non-existant input file
This commit is contained in:
commit
483c931c1f
@ -389,6 +389,11 @@ substitute() {
|
|||||||
local input="$1"
|
local input="$1"
|
||||||
local output="$2"
|
local output="$2"
|
||||||
|
|
||||||
|
if [ ! -f "$input" ]; then
|
||||||
|
echo "substitute: File \"$input\" does not exist"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
local -a params=("$@")
|
local -a params=("$@")
|
||||||
|
|
||||||
local n p pattern replacement varName content
|
local n p pattern replacement varName content
|
||||||
|
Loading…
Reference in New Issue
Block a user