You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
fix recognize error
This commit is contained in:
@@ -25,7 +25,7 @@ else
|
||||
fi
|
||||
|
||||
# Read exclution and addition config
|
||||
EXCLUDE=$(grep -vE '^#|^$' "$MODDIR/EXCLUDE" | tr '\n' '|' | sed 's/|$//')
|
||||
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$MODDIR/EXCLUDE" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' | tr '\n' '|' | sed 's/|$//')
|
||||
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$MODDIR/ADDITION")
|
||||
|
||||
# Create or overwrite the target.txt file
|
||||
|
||||
@@ -24,8 +24,8 @@ TS="/data/adb/tricky_store"
|
||||
CONFIG_DIR="$TS/target_list_config"
|
||||
MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs)
|
||||
ORG_DIR="/data/adb/modules/$MODNAME"
|
||||
EXCLUDE=$(grep -vE '^#|^$' "$CONFIG_DIR/EXCLUDE")
|
||||
ADDITION=$(grep -vE '^#|^$' "$CONFIG_DIR/ADDITION")
|
||||
EXCLUDE=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/EXCLUDE")
|
||||
ADDITION=$(grep -vE '^[[:space:]]*#|^[[:space:]]*$' "$CONFIG_DIR/ADDITION")
|
||||
|
||||
if [ -d "$TS" ]; then
|
||||
echo "- Tricky store module installed"
|
||||
|
||||
Reference in New Issue
Block a user