Merge pull request #18019 from mayflower/substituteInPlace-error

stdenv substitute: fail on non-existant input file
This commit is contained in:
Eelco Dolstra
2016-08-26 18:58:24 +02:00
committed by GitHub

View File

@@ -389,6 +389,11 @@ substitute() {
local input="$1"
local output="$2"
if [ ! -f "$input" ]; then
echo "substitute: File \"$input\" does not exist"
return 1
fi
local -a params=("$@")
local n p pattern replacement varName content