mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
address an apparent bash bug that would cause the 'obsolete sources' function to break; thanks for Mauro for coming up with the quick fix
This commit is contained in:
parent
843617c0cb
commit
7ffa1520f3
@ -2949,6 +2949,7 @@ remove_obsolete_sources() {
|
||||
local FIND_RESULT=$SBOPKGTMP/sbopkg_obsolete_find
|
||||
local SOURCES=$SBOPKGTMP/sbopkg_app_sources
|
||||
local PROGRESSBAR_INTERRUPTED=$SBOPKGTMP/sbopkg_progressbar-interrupted
|
||||
local GSNFILE=$SBOPKGTMP/sbopkg-get_source_names-output
|
||||
local PROGRESS=0
|
||||
local NUMINFO
|
||||
local INFO APP_CURRSRC REGEX
|
||||
@ -2967,11 +2968,12 @@ remove_obsolete_sources() {
|
||||
progressbar_interrupted && touch $PROGRESSBAR_INTERRUPTED && break
|
||||
|
||||
# Reading get_source_names output...
|
||||
get_source_names "$INFO" > $GSNFILE
|
||||
while read APP_CURRSRC; do
|
||||
if [[ $APP_CURRSRC ]]; then
|
||||
REGEX="/^$APP_CURRSRC$/d;$REGEX"
|
||||
fi
|
||||
done < <(get_source_names "$INFO")
|
||||
done < $GSNFILE
|
||||
|
||||
# Progress indicator, for the progressbar
|
||||
(( PROGRESS += 1 ))
|
||||
|
Loading…
Reference in New Issue
Block a user