aboutsummaryrefslogtreecommitdiff
path: root/node_modules/.bin/mime.ps1
diff options
context:
space:
mode:
authorgrant-kun <[email protected]>2022-09-26 11:32:15 -0500
committergrant-kun <[email protected]>2022-09-26 11:32:15 -0500
commitfb1a557749b7b83e9e732df7c65cdb3f17d0400a (patch)
tree681d83ad203c94e322aa84a7e2e65d5cc679370e /node_modules/.bin/mime.ps1
parent34e9facde87cac19e7d68f6ffce28546d92c9979 (diff)
parent4b237cd7f3d9ebffdfc60d987c4df3c2595c3b7c (diff)
Merge branch 'main' of https://github.com/squiresgrant/kanna-site
Diffstat (limited to 'node_modules/.bin/mime.ps1')
-rw-r--r--node_modules/.bin/mime.ps128
1 files changed, 0 insertions, 28 deletions
diff --git a/node_modules/.bin/mime.ps1 b/node_modules/.bin/mime.ps1
deleted file mode 100644
index 2222f40..0000000
--- a/node_modules/.bin/mime.ps1
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/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/../mime/cli.js" $args
- } else {
- & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
- }
- $ret=$LASTEXITCODE
-} else {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "node$exe" "$basedir/../mime/cli.js" $args
- } else {
- & "node$exe" "$basedir/../mime/cli.js" $args
- }
- $ret=$LASTEXITCODE
-}
-exit $ret