Skip to content

Commit

Permalink
Commande native à la place d'unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
A-312 committed Feb 22, 2020
1 parent 0cec07c commit e9c4f57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/win/install_zds.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ if (-not (_in "-node") -and ((_in "+node") -or (_in "+base") -or (_in "+full")))

PrintInfo " | -> Unzip node."

unzip -q temp_download\node.zip -d "$APP_PATH"; $exVal=$LASTEXITCODE + 0
ren "$APP_PATH\$node_filename" node; $exVal=($LASTEXITCODE + $exVal)
# unzip
Expand-Archive "temp_download\node.zip" -DestinationPath "$APP_PATH"; $exVal=$LASTEXITCODE + 0
ren "$APP_PATH\$node_filename" "node"; $exVal=($LASTEXITCODE + $exVal)
if ($exVal -ne 0) {
rm -r "$APP_PATH\$node_filename"
Error "Error: Cannot install nodejs." 11
Expand Down

0 comments on commit e9c4f57

Please sign in to comment.