summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index 78d78121..23c2c89e 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -37,8 +37,8 @@ writeScriptBin "recv-media" ''
37 $(echo ''${2}) 37 $(echo ''${2})
38 EOF 38 EOF
39 39
40 if [[ $(id -gn) != $group ]]; then 40 if [[ $(id -Gn) != *"$group"* ]]; then
41 printf "Primary group is %s, trying to switch to %s..." $(id -gn) $group 41 printf "Groups are ‘%s’. Trying to switch primary group to %s..." $(id -Gn) $group
42 exec -- sg $group "$0 $*" 42 exec -- sg $group "$0 $*"
43 fi 43 fi
44 44