• It looks like you have a duplicate then statement on line 8. Removing it fixed it for me.

  • This script is broken. Show "[[: not found" error and dosen't remove duplicates anything.

    I fixed and refactored this script.Use it instead.

    #!/bin/sh
    
    REPO_PATH="./universal-android-debloater/lists/*"
    
    while read -r LINE; do
    
        grep -h $LINE $REPO_PATH || { echo "[ADD] $LINE" && echo "$LINE" >> no_duplicate.sh; }
                	
    done < "$1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment