mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
In case no file in dir, still an empty string will be read, which matches [[:digit:]]* (but won't with +)
This commit is contained in:
parent
990eeb76e1
commit
ac6f24671c
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ ynh_wait_dpkg_free() {
|
|||
while read dpkg_file <&9
|
||||
do
|
||||
# Check if the name of this file contains only numbers.
|
||||
if echo "$dpkg_file" | grep -Pq "^[[:digit:]]*$"
|
||||
if echo "$dpkg_file" | grep -Pq "^[[:digit:]]+$"
|
||||
then
|
||||
# If so, that a remaining of dpkg.
|
||||
ynh_print_err "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
|
||||
|
|
Loading…
Add table
Reference in a new issue