Skip to content

Commit

Permalink
Change file to use file.exe from Git for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
reuteras committed Dec 11, 2024
1 parent 23dc876 commit f97e55c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup/install/install_verify.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Test-Command "C:\Program Files\Google\Google Earth Pro\client\googleearth.exe" P
Test-Command gpg PE32
Test-Command hashcat PE32
$JadxLibrary = (Get-ChildItem 'C:\Program Files\Jadx\' -Recurse -Include *.jar).FullName
Test-Command $JadxLibrary JAR
Test-Command $JadxLibrary "Zip archive data"
Test-Command kape PE32
Test-Command "C:\Program Files (x86)\LibreOffice\program\soffice.exe" PE32
Test-Command loki PE32
Expand Down
4 changes: 2 additions & 2 deletions setup/wscommon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ function Test-Command {
return
}

if ( file $command.Path | Where-Object {$_ -match $type}) {
if ( & 'C:\Program Files\Git\usr\bin\file.exe' -b $command.Path | Where-Object {$_ -match $type}) {
Write-SynchronizedLog "SUCCESS: $name exists and type matches $type"
} else {
$actual_type = file $command.Path
$actual_type = & 'C:\Program Files\Git\usr\bin\file.exe' -b $command.Path
Write-SynchronizedLog "ERROR: $name exists but is not of type $type. Type is $actual_type"
}
}
Expand Down

0 comments on commit f97e55c

Please sign in to comment.