mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
another bug in selection_state()
Sure seems like I tested this and it worked but I guess I focused on view_queue() and list_packages() at the wrong time. I knew remove_files() (via view_cache_dir()) had a quoted list since source names can include any kind of lunacy, unlike package names, but forgot to allow for it. So allow zero or more dquotes around LINE.
This commit is contained in:
parent
2429774709
commit
c8f0eb2f64
@ -460,7 +460,7 @@ selection_state() {
|
|||||||
|
|
||||||
sed -i 's/ON$/OFF/' $MENU_FILE
|
sed -i 's/ON$/OFF/' $MENU_FILE
|
||||||
while read LINE; do
|
while read LINE; do
|
||||||
sed -i "/^$LINE /s/OFF$/ON/" $MENU_FILE
|
sed -i "/^\"*$LINE\"* /s/OFF$/ON/" $MENU_FILE
|
||||||
done < $SELECTION_FILE
|
done < $SELECTION_FILE
|
||||||
|
|
||||||
if [[ $1 == reverse ]]; then
|
if [[ $1 == reverse ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user