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