rm -f /tmp/newpipe.db -> de ImportDB() a NewPipDB()
This commit is contained in:
parent
674bd936ef
commit
d5e5dbe2c6
@ -70,7 +70,6 @@ Main(){
|
|||||||
NEWNAME=$(cut -d'|' -f2 <<< $line)
|
NEWNAME=$(cut -d'|' -f2 <<< $line)
|
||||||
ValidaLink "${NEWID}" "${NEWNAME}"
|
ValidaLink "${NEWID}" "${NEWNAME}"
|
||||||
done <<< "$(sqlite3 $1 'select url,name from subscriptions' | cut -d\/ -f5)"
|
done <<< "$(sqlite3 $1 'select url,name from subscriptions' | cut -d\/ -f5)"
|
||||||
rm -f /tmp/newpipe.db
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# extrae newpipe-db.zip
|
# extrae newpipe-db.zip
|
||||||
@ -79,6 +78,7 @@ Main(){
|
|||||||
printf 'Unzipping %s en /tmp/ \n' "${1}"
|
printf 'Unzipping %s en /tmp/ \n' "${1}"
|
||||||
unzip -qq $RUTADB newpipe.db -d /tmp/ && \
|
unzip -qq $RUTADB newpipe.db -d /tmp/ && \
|
||||||
ImportDB '/tmp/newpipe.db'
|
ImportDB '/tmp/newpipe.db'
|
||||||
|
rm -f /tmp/newpipe.db
|
||||||
elif [[ ${RUTADB} == *\.db ]]; then
|
elif [[ ${RUTADB} == *\.db ]]; then
|
||||||
ImportDB ${RUTADB}
|
ImportDB ${RUTADB}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user