fixes rm & restart param checks
This commit is contained in:
parent
61d3f23c03
commit
a95fabeeb2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
Remove-Item $zip -Recurse -Force
|
||||||
Set-Attr $result.win_unzip "rm" "true"
|
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
|
Restart-Computer -Force
|
||||||
Set-Attr $result.win_unzip "restart" "true"
|
Set-Attr $result.win_unzip "restart" "true"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue