Fix script-files-permissions-set

This commit is contained in:
2021-10-22 16:01:25 -04:00
parent 0aebe9073a
commit 4bace617ef
2 changed files with 6 additions and 5 deletions

View File

@@ -7,8 +7,8 @@
is_root
if [[ $# -eq 0 ]]; then
user=$(stat -c "%U" "$path")
group=$(stat -c "%G" "$path")
user=$(stat -c "%U" "$PWD")
group=$(stat -c "%G" "$PWD")
echo "No arguments provided, using autodetection"
if [[ "$group" != "smbgrp" ]]; then
echo "This file will not be world-accessible by the smbgrp group"