Skip to content

Commit b73ea5c

Browse files
authored
Update update_un-get.sh
- added `yes | ` for `--force` path to auto-confirm removals - prevents aborts when missing packages need removal
1 parent fa13a68 commit b73ea5c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

update_un-get.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Author: [Cpt. Chaz]
44
# Created: [03/07/25]
5-
# Updated: [04/30/25] - v1.1
5+
# Updated: [05/21/25] - v1.2
66
# Description: A simple Unraid script for updating the un-get packages. This script will update, upgrade, and clean un-gets packages.
77
# Place script in the Unraid User Scripts plugin and schedule according to user preference.
88
# Status: Tested
@@ -38,7 +38,7 @@ if ! un-get upgrade; then
3838
echo "Upgrade failed, attempting forced recovery..."
3939
un-get clean
4040
un-get update
41-
un-get upgrade --force || {
41+
yes | un-get upgrade --force || {
4242
echo "Automatic recovery with --force failed. Please check manually."
4343
exit 1
4444
}
@@ -50,4 +50,3 @@ un-get cleanup
5050

5151
# Notify success
5252
echo "All un-get packages have been updated successfully!"
53-

0 commit comments

Comments
 (0)