From b6011a23d51acff6eb492cb33aa5c2582da6fab4 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 31 Mar 2023 08:00:00 +0000 Subject: treewide: fix unnecessary $ on arithmetic variables This should fix shellcheck warning SC2004. --- modules/pam_namespace/namespace.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_namespace') diff --git a/modules/pam_namespace/namespace.init b/modules/pam_namespace/namespace.init index 67d4aa2d..d9053a13 100755 --- a/modules/pam_namespace/namespace.init +++ b/modules/pam_namespace/namespace.init @@ -16,7 +16,7 @@ if [ "$3" = 1 ]; then cp -rT /etc/skel "$homedir" chown -R "$user":"$gid" "$homedir" mask=$(awk '/^UMASK/{gsub("#.*$", "", $2); print $2; exit}' /etc/login.defs) - mode=$(printf "%o" $((0777 & ~$mask))) + mode=$(printf "%o" $((0777 & ~mask))) chmod ${mode:-700} "$homedir" [ -x /sbin/restorecon ] && /sbin/restorecon -R "$homedir" fi -- cgit v1.2.3