Dateien nach "source/usr/local/emhttp/plugins/un-get" hochladen

This commit is contained in:
2024-11-22 09:07:28 +01:00
parent b18e0b36c7
commit 148fca2a22
2 changed files with 12 additions and 4 deletions

View File

@@ -225,4 +225,12 @@ Date: 2024-11-01
- Merge PR from cloudiful to fix some packages may be skipped on installation
and install wrong package instead
----------------------------------------
----------------------------------------
----------------------------------------
Version: 0.28
Date: 2024-11-22
- Merge PR from adapowers
cleanup(): Multiple match resilience
----------------------------------------

View File

@@ -395,7 +395,7 @@ ${p}"
fi
else
echo "Nothing to upgrade, no packages which are installed by un-get found!"
fi
fi
}
remove() {
@@ -441,7 +441,7 @@ cleanup() {
PACKAGE_LIST_INSTALLED="$(cat /boot/config/plugins/un-get/installedpackages_list)"
for p in ${BOOT_PKGS}
do
if [ ! $(grep ${p%.*} <<< "${INSTALLED_PKGS}") ]; then
if [ $(grep "${p%.*}" <<< "${INSTALLED_PKGS}" | wc -l) -eq 0 ]; then
if [ -z "${CLEANUP_LIST}" ]; then
CLEANUP_LIST="${p}"
else
@@ -464,7 +464,7 @@ cleanup() {
echo "Please wait, checking if package list is up-to-date...!"
for p in ${PACKAGE_LIST_INSTALLED}
do
if [ ! $(grep ${p%.*} <<< "${INSTALLED_PKGS}") ]; then
if [ $(grep "${p%.*}" <<< "${INSTALLED_PKGS}" | wc -l) -eq 0 ]; then
sed -i "/$p/d" /boot/config/plugins/un-get/installedpackages_list
fi
done