mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
use $PSScriptRoot (other)
This commit is contained in:
parent
043ea58fbd
commit
c1a708a088
2 changed files with 4 additions and 13 deletions
|
@ -6,11 +6,8 @@ if(!(Get-Command scoop -ErrorAction SilentlyContinue)) {
|
|||
exit 1
|
||||
}
|
||||
|
||||
# execution location
|
||||
if(!((Test-Path bin) -and (Test-Path dotfiles))) {
|
||||
Write-Warning "This script need to be executed in dotfiles root"
|
||||
exit 2
|
||||
}
|
||||
# change working directory to git root
|
||||
Set-Location (Join-Path $PSScriptRoot "..")
|
||||
|
||||
|
||||
# export to JSON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue