more is better

This commit is contained in:
fred 2022-08-25 19:38:58 +02:00
parent 3624cc054f
commit 157813f903
3 changed files with 7 additions and 5 deletions

View File

@ -127,6 +127,7 @@ select fav in "${choices[@]}"; do
"IMPRIMER VOEU")
PS3='Choisissez un de vos voeux ___ '
voeux=($(ls ~/.zen/game/players/$PLAYER/voeux 2>/dev/null))
select voeu in "${voeux[@]}"; do
case $voeu in
*) echo "IMPRESSION $voeu"

View File

@ -27,10 +27,14 @@ for PLAYER in $(ls ~/.zen/game/players/); do
ipfs --timeout 12s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/astro/index.html
if [ ! -s ~/.zen/tmp/astro/index.html ]; then
echo "ERROR IPNS TIMEOUT. Unchanged local backup..."
continue
else
## Replace tube links with downloaded video
$MY_PATH/TUBE.copy.sh ~/.zen/tmp/astro/index.html $PLAYER
echo "Upgrade TW local copy..."
cp ~/.zen/tmp/astro/index.html ~/.zen/game/players/$PLAYER/ipfs/moa/index.html
fi

View File

@ -38,11 +38,8 @@ do
echo "ipfs key rm $voeu && rm -Rf ~/.zen/game/world/$voeu"
continue
else
# Downloading "tag=tube"
echo "$MY_PATH/TUBE.tw.sh ~/.zen/tmp/work/index.html $voeu"
echo "PLEASE MANUAL RUN"
read
## Replace tube links with downloaded video
$MY_PATH/TUBE.copy.sh ~/.zen/tmp/work/index.html $voeu
# Update local copy
cp ~/.zen/tmp/work/index.html ~/.zen/game/world/$voeu/index.html