Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 6f879c68aef1a64443f74b0cc09a720acb2a54c7
  • main default protected
  • revert
  • 64160159
  • 64160292
  • 64160073
  • html-v_page
  • 64160174
  • 64160072
  • 64160295
  • production
11 results

profile.css

Blame
  • rimraf.ps1 777 B
    #!/usr/bin/env pwsh
    $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
    
    $exe=""
    if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
      # Fix case when both the Windows and Linux builds of Node
      # are installed in the same directory
      $exe=".exe"
    }
    $ret=0
    if (Test-Path "$basedir/node$exe") {
      # Support pipeline input
      if ($MyInvocation.ExpectingInput) {
        $input | & "$basedir/node$exe"  "$basedir/../rimraf/bin.js" $args
      } else {
        & "$basedir/node$exe"  "$basedir/../rimraf/bin.js" $args
      }
      $ret=$LASTEXITCODE
    } else {
      # Support pipeline input
      if ($MyInvocation.ExpectingInput) {
        $input | & "node$exe"  "$basedir/../rimraf/bin.js" $args
      } else {
        & "node$exe"  "$basedir/../rimraf/bin.js" $args
      }
      $ret=$LASTEXITCODE
    }
    exit $ret