From 207b7eb029a2321d54bc39b9d561ee00bef9258e Mon Sep 17 00:00:00 2001 From: Igor Chudov Date: Fri, 27 Mar 2020 15:50:09 +0400 Subject: [PATCH] Minifix for testing policy existence --- dist/gpupdate-setup | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dist/gpupdate-setup b/dist/gpupdate-setup index d2ec931..bb04327 100755 --- a/dist/gpupdate-setup +++ b/dist/gpupdate-setup @@ -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