diff options
author | Phil Schwartz <schwartzmx@gmail.com> | 2014-12-31 19:17:53 -0600 |
---|---|---|
committer | Phil Schwartz <schwartzmx@gmail.com> | 2014-12-31 19:17:53 -0600 |
commit | a95fabeeb2fff2d0e16b532d35da4dd60adb0b22 (patch) | |
tree | def97dd5fb4a0e6774da57f41fd63a2d8cd83a6b /windows/win_unzip.ps1 | |
parent | 61d3f23c032457ff1a350b7859b5aca193ad4eb9 (diff) | |
download | ansible-modules-extras-a95fabeeb2fff2d0e16b532d35da4dd60adb0b22.tar.gz |
fixes rm & restart param checks
Diffstat (limited to 'windows/win_unzip.ps1')
-rw-r--r-- | windows/win_unzip.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/win_unzip.ps1 b/windows/win_unzip.ps1 index 6772792b..e77aa9e1 100644 --- a/windows/win_unzip.ps1 +++ b/windows/win_unzip.ps1 @@ -67,12 +67,12 @@ Catch { } } -If ($params.rm -eq "true"){ +If ($params.rm -eq "true" -Or $params.rm -eq "yes"){ Remove-Item $zip -Recurse -Force Set-Attr $result.win_unzip "rm" "true" } -If ($params.restart -eq "true") { +If ($params.restart -eq "true" -Or $params.restart -eq "yes") { Restart-Computer -Force Set-Attr $result.win_unzip "restart" "true" } |