We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145de4e commit 6cb99a4Copy full SHA for 6cb99a4
scripts/install.ps1
@@ -1,4 +1,10 @@
1
+$RootDir = Resolve-Path -Path ((Split-Path $MyInvocation.MyCommand.Path) + "\..")
2
$InstallDir = $args[0]
3
+
4
+if (-not $InstallDir) {
5
+ $InstallDir = $RootDir
6
+}
7
8
$BinDir = "$InstallDir\bin"
9
$OutFile = "$BinDir\vim-doge-helper.exe"
10
@@ -14,7 +20,6 @@ else {
14
20
$AssetName = "vim-doge-helper-windows-x86_64.zip"
15
21
}
16
22
17
-$RootDir = Resolve-Path -Path ((Split-Path $MyInvocation.MyCommand.Path) + "\..")
18
23
$AppVersion = Get-Content "$RootDir\.version"
19
24
25
$AssetPath = "$RootDir\bin\$AssetName"
0 commit comments