Skip to content

Commit

Permalink
Fix Powershell condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Feb 26, 2024
1 parent 30ee8fe commit a303e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
Invoke-RestMethod -Uri '${urlBase}.zip' -OutFile elvish.zip
Expand-Archive elvish.zip -DestinationPath .
rm elvish.zip
if (!Test-Path elvish.exe -PathType leaf) {
if (!(Test-Path elvish.exe -PathType leaf)) {
Rename-Item -Path elvish-${version}.exe -NewName elvish.exe
}
`);
Expand Down

0 comments on commit a303e16

Please sign in to comment.