tv vim: restore original umask

This commit is contained in:
tv 2016-02-07 07:50:17 +01:00
parent b819d6c452
commit 698296eb8c

View file

@ -47,9 +47,10 @@ let
vim = pkgs.writeScriptBin "vim" ''
#! ${pkgs.dash}/bin/dash
set -f
umask=$(umask)
umask 0077
${concatStringsSep "\n" (map (x: "mkdir -p ${x}") mkdirs)}
umask 0022
umask "$umask"
exec ${pkgs.vim}/bin/vim "$@"
'';