diff --git a/make.ps1 b/make.ps1 index f43c4f0..4e7c092 100644 --- a/make.ps1 +++ b/make.ps1 @@ -51,9 +51,9 @@ Function Build-Project { & git submodule update --recursive --init | Out-Host & git submodule update --recursive --remote | Out-Host Get-Content -Path 'use\components.txt' | ForEach-Object { - If ((-not (& lazbuild --verbose-pkgsearch $_ | Out-Null)) -and - (-not (& lazbuild --add-package $_ | Out-Null)) -and - (-not (Test-Path -Path 'use\components.txt'))) { + If ((! (& lazbuild --verbose-pkgsearch $_)) && + (! (& lazbuild --add-package $_)) && + (! (Test-Path -Path 'use\components.txt'))) { $OutFile = Request-File "https://packages.lazarus-ide.org/$($_).zip" Expand-Archive -Path $OutFile -DestinationPath "use\$($_)" -Force Remove-Item $OutFile @@ -87,4 +87,4 @@ Function Switch-Action { } ############################################################################################################## -Switch-Action @args | Out-Null +Switch-Action @args diff --git a/make.sh b/make.sh index cb25a36..9c812b2 100644 --- a/make.sh +++ b/make.sh @@ -27,7 +27,7 @@ function priv_lazbuild if [[ -n "${REPLY}" ]] && ! (lazbuild --verbose-pkgsearch "${REPLY}") && ! (lazbuild --add-package "${REPLY}") && - ! [[ -f "use/${REPLY}" ]]; then + ! [[ -e "use/${REPLY}" ]]; then declare -A VAR=( [url]="https://packages.lazarus-ide.org/${REPLY}.zip" [out]=$(mktemp)