summaryrefslogtreecommitdiff
path: root/src/node_modules/.bin/opencollective.ps1
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
committerMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
commit46e43f4bde4a35785b4997b81e86cd19f046b69b (patch)
treec53c2f826f777f9d6b2d249dab556feb72a6c3a6 /src/node_modules/.bin/opencollective.ps1
downloadlangdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.gz
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.bz2
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.zip
Commit
Diffstat (limited to 'src/node_modules/.bin/opencollective.ps1')
-rw-r--r--src/node_modules/.bin/opencollective.ps118
1 files changed, 18 insertions, 0 deletions
diff --git a/src/node_modules/.bin/opencollective.ps1 b/src/node_modules/.bin/opencollective.ps1
new file mode 100644
index 0000000..600a106
--- /dev/null
+++ b/src/node_modules/.bin/opencollective.ps1
@@ -0,0 +1,18 @@
+#!/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") {
+ & "$basedir/node$exe" "$basedir/../@nuxtjs/opencollective/bin/opencollective.js" $args
+ $ret=$LASTEXITCODE
+} else {
+ & "node$exe" "$basedir/../@nuxtjs/opencollective/bin/opencollective.js" $args
+ $ret=$LASTEXITCODE
+}
+exit $ret