mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Clean up code
This commit is contained in:
parent
684edd27a2
commit
ccd59a2f17
4 changed files with 0 additions and 4 deletions
|
|
@ -99,7 +99,6 @@ function pip3 {
|
|||
function python {
|
||||
param([Parameter(ValueFromRemainingArguments=$true)]$Args)
|
||||
if ($Args.Length -ge 2 -and $Args[0] -eq '-m' -and $Args[1] -match '^pip(3)?$') {
|
||||
# python -m pip → aikido-pip, python -m pip3 → aikido-pip3
|
||||
$pipArgs = if ($Args.Length -gt 2) { $Args | Select-Object -Skip 2 } else { @() }
|
||||
if ($Args[1] -eq 'pip3') { Invoke-WrappedCommand 'pip3' 'aikido-pip3' $pipArgs }
|
||||
else { Invoke-WrappedCommand 'pip' 'aikido-pip' $pipArgs }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue