PowerShell: use native Camel-Case style for commands (#650)

In PowerShell land it is preferred to use Camel Case for command names,
options and parameters, so lets respect that.
This commit is contained in:
ratijas 2021-06-19 23:41:14 +03:00 committed by GitHub
parent 9885c4be7a
commit 50e3a6856e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,10 +15,10 @@
$tmp = [System.IO.Path]::GetTempFileName()
lf -last-dir-path="$tmp" $args
if (test-path -pathtype leaf "$tmp") {
$dir = type "$tmp"
remove-item -force "$tmp"
if (test-path -pathtype container "$dir") {
if (Test-Path -PathType Leaf "$tmp") {
$dir = Get-Content "$tmp"
Remove-Item -Force "$tmp"
if (Test-Path -PathType Container "$dir") {
if ("$dir" -ne "$pwd") {
cd "$dir"
}