INDEX="$HOME/.zen/tmp/${MOATS}/index.html"

This commit is contained in:
fred 2023-07-11 21:33:12 +02:00
parent 06abde6e36
commit 155a5cfc54
1 changed files with 4 additions and 2 deletions

View File

@ -192,10 +192,10 @@ while read TITRE; do
if [[ ${IPFSONE} == "" ]]; then if [[ ${IPFSONE} == "" ]]; then
## RUN NO IPFS_ONE STEP ## RUN NO IPFS_ONE STEP
echo "${SOURCE}" echo "ADD ${SOURCE} TO IPFS"
[[ ${boucle} == 1 ]] && echo "IPFS ADD DONE ONCE TODAY" && continue [[ ${boucle} == 1 ]] && echo "IPFS ADD DONE ONCE TODAY" && continue
$IPFSMOVIE=$(ipfs add -q "$SOURCE") IPFSMOVIE=$(ipfs add -q "$SOURCE")
echo "/ipfs/${IPFSMOVIE}" > ~/.zen/tmp/${MOATS}/source echo "/ipfs/${IPFSMOVIE}" > ~/.zen/tmp/${MOATS}/source
~/.zen/Astroport.ONE/tools/natools.py encrypt -p ${G1PUB} -i ~/.zen/tmp/${MOATS}/source -o ~/.zen/tmp/${MOATS}/source.enc ~/.zen/Astroport.ONE/tools/natools.py encrypt -p ${G1PUB} -i ~/.zen/tmp/${MOATS}/source -o ~/.zen/tmp/${MOATS}/source.enc
@ -214,6 +214,7 @@ while read TITRE; do
[[ -s ~/.zen/tmp/newindex.html ]] \ [[ -s ~/.zen/tmp/newindex.html ]] \
&& cp -f ~/.zen/tmp/newindex.html ~/.zen/tmp/${MOATS}/index.html && cp -f ~/.zen/tmp/newindex.html ~/.zen/tmp/${MOATS}/index.html
INDEX="$HOME/.zen/tmp/${MOATS}/index.html"
boucle=$((boucle+1)) ## COUNT HOW MANY MOVIES GOING TO IPFS boucle=$((boucle+1)) ## COUNT HOW MANY MOVIES GOING TO IPFS
else else
@ -251,6 +252,7 @@ while read TITRE; do
[[ -s ~/.zen/tmp/newindex.html ]] \ [[ -s ~/.zen/tmp/newindex.html ]] \
&& cp -f ~/.zen/tmp/newindex.html ~/.zen/tmp/${MOATS}/index.html && cp -f ~/.zen/tmp/newindex.html ~/.zen/tmp/${MOATS}/index.html
INDEX="$HOME/.zen/tmp/${MOATS}/index.html"
fi fi