This commit is contained in:
KOWX712
2024-11-18 21:37:46 +08:00
parent 68158796dc
commit 82d803c2db
6 changed files with 15 additions and 7 deletions

View File

@@ -13,7 +13,6 @@ awk -F'|' '{print $1}' | \
grep -v "isolated" | \
sort | uniq > "$OUTPUT"
# Check if the output file is successfully created
if [ ! -s "$OUTPUT" ]; then
echo "Failed to retrieve Magisk denylist or no packages found." > "$OUTPUT"
exit 1

View File

@@ -18,7 +18,6 @@ wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/T
grep -o '"package-name": *"[^"]*"' | \
awk -F'"' '{print $4}' >> "$OUTPUT"
# Check if the output directory is empty
if [ ! -s "$OUTPUT" ]; then
echo "Error: Failed to fetch data." > "$OUTPUT"
exit 1