mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-29 20:34:34 +01:00
Avoid an error spitting exiting sbopkg with empty queue.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
c8b479507a
commit
74de95eee3
1 changed files with 2 additions and 2 deletions
|
@ -1479,7 +1479,7 @@ save_user_queue() {
|
|||
|
||||
rm -f $SAVEQUEUE
|
||||
# Reading from $TMPQUEUE...
|
||||
while read PICK; do
|
||||
[[ -s $TMPQUEUE ]] && while read PICK; do
|
||||
SAVENAME=$(echo $PICK | cut -d ' ' -f1)
|
||||
SAVEONOFF=$(echo $PICK | cut -d ' ' -f3)
|
||||
if [[ $SAVEONOFF =~ [oO][nN] ]]; then
|
||||
|
@ -1490,7 +1490,7 @@ save_user_queue() {
|
|||
done < $TMPQUEUE
|
||||
if [[ $1 == "--end" ]]; then
|
||||
if [[ ! -s $TMPQUEUE ]]; then
|
||||
return 1
|
||||
return 0
|
||||
elif [[ -f $LAST_USER_QUEUE_ON_DISK ]] &&
|
||||
diff <(stripcom $LAST_USER_QUEUE_ON_DISK) $SAVEQUEUE &> \
|
||||
/dev/null; then
|
||||
|
|
Loading…
Add table
Reference in a new issue