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") "IMPRIMER VOEU")
PS3='Choisissez un de vos voeux ___ ' PS3='Choisissez un de vos voeux ___ '
voeux=($(ls ~/.zen/game/players/$PLAYER/voeux 2>/dev/null)) voeux=($(ls ~/.zen/game/players/$PLAYER/voeux 2>/dev/null))
select voeu in "${voeux[@]}"; do select voeu in "${voeux[@]}"; do
case $voeu in case $voeu in
*) echo "IMPRESSION $voeu" *) 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 ipfs --timeout 12s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/astro/index.html
if [ ! -s ~/.zen/tmp/astro/index.html ]; then if [ ! -s ~/.zen/tmp/astro/index.html ]; then
echo "ERROR IPNS TIMEOUT. Unchanged local backup..." echo "ERROR IPNS TIMEOUT. Unchanged local backup..."
continue continue
else else
## Replace tube links with downloaded video
$MY_PATH/TUBE.copy.sh ~/.zen/tmp/astro/index.html $PLAYER
echo "Upgrade TW local copy..." echo "Upgrade TW local copy..."
cp ~/.zen/tmp/astro/index.html ~/.zen/game/players/$PLAYER/ipfs/moa/index.html cp ~/.zen/tmp/astro/index.html ~/.zen/game/players/$PLAYER/ipfs/moa/index.html
fi fi

View File

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