Skip to content

Commit fe4d56b

Browse files
committed
chore: read appveyor_token from HOME
1 parent fec074c commit fe4d56b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/clear-appveyor-cache.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ if ($confirmation -ne 'y') {
99

1010
# PowerShell: Run command from script's directory - Stack Overflow
1111
# https://stackoverflow.com/questions/4724290
12-
$script_path = $MyInvocation.MyCommand.Path
13-
$script_dir = Split-Path $script_path
12+
# $script_path = $MyInvocation.MyCommand.Path
13+
# $script_dir = Split-Path $script_path
1414

1515
# Equivalent of bash's `source` command in Powershell? - Super User
1616
# https://superuser.com/questions/71446
1717
# Script scope and dot sourcing - PowerShell | Microsoft Docs
1818
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scripts#script-scope-and-dot-sourcing
19-
. "$script_dir\appveyor_token.ps1"
19+
# PowerShell: How to quickly switch to your home directory
20+
# https://sid-500.com/2017/08/03/powershell-how-to-quickly-switch-to-your-home-directory/
21+
. "$home\.appveyor_token.ps1"
2022
# file appveyor_token.ps1 provide appveyor token. content sample:
2123
# $appveyor_token = xxx
2224

0 commit comments

Comments
 (0)