From e27f2f70a4a6490abef64c66b7a74915f2d3e2e5 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 23 Nov 2008 00:20:39 -0600 Subject: Ensure we keep track of our initial umask If we call set_umask more than once, make sure we don't overwrite our initial umask, so we can restore it right Signed-off-by: Aaron Griffin --- db-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db-functions') diff --git a/db-functions b/db-functions index ae1a171..b196d57 100644 --- a/db-functions +++ b/db-functions @@ -21,7 +21,7 @@ source_makepkg () { UMASK="" set_umask () { - UMASK="$(umask)" + [ "$UMASK" == "" ] && UMASK="$(umask)" umask 002 } -- cgit v1.2.3-24-g4f1b