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
cherry-picker.ps1 [<commit-id>] [<commit-message>] [<branches>] [<repo-dir>]
cherry-picker.ps1 [<CommitID>] [<CommitMessage>] [<Branches>] [<RepoDir>]
.DESCRIPTION
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!

View File

@ -12,7 +12,7 @@
#>
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
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"