rm -f /tmp/newpipe.db -> de ImportDB() a NewPipDB()

This commit is contained in:
devfzn 2021-10-24 15:15:42 -03:00
parent 674bd936ef
commit d5e5dbe2c6

View File

@ -70,7 +70,6 @@ Main(){
NEWNAME=$(cut -d'|' -f2 <<< $line)
ValidaLink "${NEWID}" "${NEWNAME}"
done <<< "$(sqlite3 $1 'select url,name from subscriptions' | cut -d\/ -f5)"
rm -f /tmp/newpipe.db
}
# extrae newpipe-db.zip
@ -79,6 +78,7 @@ Main(){
printf 'Unzipping %s en /tmp/ \n' "${1}"
unzip -qq $RUTADB newpipe.db -d /tmp/ && \
ImportDB '/tmp/newpipe.db'
rm -f /tmp/newpipe.db
elif [[ ${RUTADB} == *\.db ]]; then
ImportDB ${RUTADB}
else