mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Update the scripts
This commit is contained in:
parent
0dd2d484c5
commit
291d785700
@ -29,7 +29,7 @@ try {
|
||||
[int]$Step = 1
|
||||
foreach ($Folder in $Folders) {
|
||||
$FolderName = (get-item "$Folder").Name
|
||||
"👉 Step $Step/$($FolderCount): Fetching 📂$FolderName..."
|
||||
"⏳ Step $Step/$($FolderCount): Fetching 📂$FolderName..."
|
||||
|
||||
& git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --jobs=4
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
@ -21,10 +21,10 @@ try {
|
||||
& sudo apt update
|
||||
|
||||
"⏳ Step 2/4: Upgrading installed Debian packages..."
|
||||
& sudo apt upgrade -y
|
||||
& sudo apt upgrade --yes
|
||||
|
||||
"⏳ Step 3/4: Removing obsolete Debian packages..."
|
||||
& sudo apt autoremove
|
||||
& sudo apt autoremove --yes
|
||||
|
||||
"⏳ Step 4/4: Upgrading installed Snap packages..."
|
||||
& sudo snap refresh
|
||||
|
@ -1,5 +1,4 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
|
||||
pull-repos.ps1 [<parent-dir>]
|
||||
.DESCRIPTION
|
||||
Pulls updates for all Git repositories under the current/given directory (including submodules)
|
||||
@ -29,7 +28,7 @@ try {
|
||||
[int]$Step = 1
|
||||
foreach ($Folder in $Folders) {
|
||||
$FolderName = (get-item "$Folder").Name
|
||||
"👉 Step $Step/$($FolderCount): Pulling 📂$FolderName..."
|
||||
"⏳ Step $Step/$($FolderCount): Pulling 📂$FolderName..."
|
||||
|
||||
& git -C "$Folder" pull --recurse-submodules --jobs=4
|
||||
if ($lastExitCode -ne "0") { write-warning "'git pull' on 📂$FolderName failed" }
|
||||
|
Loading…
Reference in New Issue
Block a user