Not failing if not doing chmod +x

svn path=/nixpkgs/trunk/; revision=13167
This commit is contained in:
Michael Raskin 2008-10-31 12:24:28 +00:00
parent 48741bce6e
commit 63e5663b2e

View File

@ -444,7 +444,7 @@ let
n=$out${destination} n=$out${destination}
mkdir -p "$(dirname "$n")" mkdir -p "$(dirname "$n")"
echo -n "$text" > "$n" echo -n "$text" > "$n"
test -n "$executable" && chmod +x "$n" (test -n "$executable" && chmod +x "$n") || true
''; '';
# Shorthands for `writeTextFile'. # Shorthands for `writeTextFile'.