mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-11 05:43:53 +02:00
Updated the cd-*.ps1 scripts
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the Jenkins home directory.
|
||||
.EXAMPLE
|
||||
PS> ./cd-jenkins
|
||||
PS> ./cd-jenkins.ps1
|
||||
📂C:\Users\Markus\.jenkins entered (has 2 files and 21 folders)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -12,6 +12,8 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
#requires -version 5.1
|
||||
|
||||
try {
|
||||
if (Test-Path "~/.jenkins" -pathType container) {
|
||||
$path = "~/.jenkins"
|
||||
|
Reference in New Issue
Block a user