mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
files: improve keyword for inheriting executable bit
This commit is contained in:
parent
145aefc9d1
commit
d7537777c3
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ in
|
||||||
install -m "$mode" "$source" "$target"
|
install -m "$mode" "$source" "$target"
|
||||||
else
|
else
|
||||||
[[ -x $source ]] && isExecutable=1 || isExecutable=""
|
[[ -x $source ]] && isExecutable=1 || isExecutable=""
|
||||||
if [[ $executable == symlink || $isExecutable == $executable ]]; then
|
if [[ $executable == inherit || $isExecutable == $executable ]]; then
|
||||||
ln -s "$source" "$target"
|
ln -s "$source" "$target"
|
||||||
else
|
else
|
||||||
cp "$source" "$target"
|
cp "$source" "$target"
|
||||||
|
@ -242,7 +242,7 @@ in
|
||||||
insertFile "${v.source}" \
|
insertFile "${v.source}" \
|
||||||
"${v.target}" \
|
"${v.target}" \
|
||||||
"${if v.executable == null
|
"${if v.executable == null
|
||||||
then "symlink"
|
then "inherit"
|
||||||
else builtins.toString v.executable}" \
|
else builtins.toString v.executable}" \
|
||||||
"${builtins.toString v.mode}" \
|
"${builtins.toString v.mode}" \
|
||||||
"${builtins.toString v.recursive}"
|
"${builtins.toString v.recursive}"
|
||||||
|
|
Loading…
Reference in a new issue