1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Minifix for testing policy existence

This commit is contained in:
Игорь Чудов 2020-03-27 15:50:09 +04:00
parent 5668dae81e
commit 207b7eb029
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

4
dist/gpupdate-setup vendored
View File

@ -37,9 +37,7 @@ enable() {
POLICY_SETTING="/etc/local-policy"
POLICY="${1:-default}"
test -d "${POLICY_DIR}/${POLICY}"
if $?; then
if ! test -d "${POLICY_DIR}/${POLICY}"; then
POLICY=default
fi