Improve list-drives.ps1 and cherry-picker.ps1

This commit is contained in:
Markus Fleschutz 2021-09-01 09:51:32 +02:00
parent e6577ade65
commit 1aef356a75
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<# <#
.SYNOPSIS .SYNOPSIS
cherry-picker.ps1 [<commit-id>] [<commit-message>] [<branches>] [<repo-dir>] cherry-picker.ps1 [<CommitID>] [<CommitMessage>] [<Branches>] [<RepoDir>]
.DESCRIPTION .DESCRIPTION
Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces). Cherry-picks a Git commit into one or more branches (branch names need to be separated by spaces).
NOTE: in case of merge conflicts the script stops immediately! NOTE: in case of merge conflicts the script stops immediately!

View File

@ -12,7 +12,7 @@
#> #>
try { try {
get-PSDrive -PSProvider FileSystem Get-PSDrive -PSProvider FileSystem | format-table -property Name,Root,@{n="Used (GB)";e={[math]::Round($_.Used/1GB,2)}},@{n="Free (GB)";e={[math]::Round($_.Free/1GB,2)}}
exit 0 exit 0
} catch { } catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"