mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 21:43:37 +08:00
Update package.sh
This commit is contained in:
parent
d8e6fcaa79
commit
5c46f0dd56
|
@ -283,7 +283,7 @@ check_eol_and_switch_apt_source() {
|
|||
|
||||
fix_broken() {
|
||||
# Check if the output of the update contains "--fix-broken install"
|
||||
if apt update | grep -E '--fix-broken.*install'; then
|
||||
if apt update | grep -F -- '--fix-broken' | grep -F -- 'install'; then
|
||||
# If it does, run apt --fix-broken install -y
|
||||
apt --fix-broken install -y
|
||||
apt update
|
||||
|
|
Loading…
Reference in New Issue
Block a user