From 26f2784f0f3f87789850df1a1eaf1345eed0c45a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 9 Sep 2024 10:16:11 -0500 Subject: [PATCH] Force umask when creating notes --- modules/home-manager/scripts/common/bin/nf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home-manager/scripts/common/bin/nf b/modules/home-manager/scripts/common/bin/nf index 9eaef3f..bd14ef3 100755 --- a/modules/home-manager/scripts/common/bin/nf +++ b/modules/home-manager/scripts/common/bin/nf @@ -1,5 +1,6 @@ #!/usr/bin/env sh +umask 0077 SUBDIR="${2:-./}" mkdir -p "$NOTES_PATH/$SUBDIR" cd "$NOTES_PATH/$SUBDIR" || exit 1