mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Improve list-drives.ps1 and cherry-picker.ps1
This commit is contained in:
parent
e6577ade65
commit
1aef356a75
@ -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!
|
||||
|
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user