diff options
author | tv <tv@krebsco.de> | 2016-02-07 07:50:17 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-07 07:50:17 +0100 |
commit | 698296eb8c986127e0fb195a51b3adf3f31eeedf (patch) | |
tree | 6c2f2f484a2ccda6dec3bf14983fd9559e17da81 /tv | |
parent | b819d6c452605af66282c14e25907793a4b77c65 (diff) |
tv vim: restore original umask
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/vim.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 9f702cd4d..8a6299a39 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -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 "$@" ''; |