From 5142eaf57c217e17ea0e281ce17b006e6a6d6ff8 Mon Sep 17 00:00:00 2001 From: Ruoyu Qiu Date: Fri, 7 Mar 2025 05:28:46 +0000 Subject: [PATCH] Fix file name check of update Signed-off-by: Ruoyu Qiu --- debtap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debtap b/debtap index d384967..81bf4c0 100755 --- a/debtap +++ b/debtap @@ -130,7 +130,7 @@ elif [[ $(file -S -b "${@: -1}" | grep -q "Debian binary package"; echo $?) != 0 echo -e "${red}Error: You haven't specified a valid deb package${NC}"; exit 1 fi -if [[ ! $(ls /var/cache/pkgfile/*.files 2> /dev/null) ]] || [[ ! $(ls /var/cache/debtap/*-packages-files 2> /dev/null) ]] || [[ ! -e /var/cache/debtap/base-packages ]] || [[ ! -e /var/cache/debtap/aur-packages ]] || [[ ! -e /var/cache/debtap/virtual-packages ]]; then +if [[ ! $(ls /var/cache/pkgfile/*.files.* 2> /dev/null) ]] || [[ ! $(ls /var/cache/debtap/*-packages-files 2> /dev/null) ]] || [[ ! -e /var/cache/debtap/base-packages ]] || [[ ! -e /var/cache/debtap/aur-packages ]] || [[ ! -e /var/cache/debtap/virtual-packages ]]; then # This should fix it. Patch by SnivySquid65! if [[ $pseudo != set ]]; then while true; do