diff --git a/ASTROBOT/G1CopierYoutube.sh b/ASTROBOT/G1CopierYoutube.sh index 6dce696a..4a14db5e 100755 --- a/ASTROBOT/G1CopierYoutube.sh +++ b/ASTROBOT/G1CopierYoutube.sh @@ -149,8 +149,11 @@ if [[ ! ${TIDDLER} ]]; then echo "No FILE -- TRYING TO RESTORE CACHE FROM TW --" tiddlywiki --load ${INDEX} \ --output ~/.zen/game/players/${PLAYER}/G1CopierYoutube \ - --render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" \ - && rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" && ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" + --render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" + if [[ -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json ]]; then + rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" 2>/dev/null + ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" + fi continue fi echo diff --git a/www/G1PalPay/index.html b/www/G1PalPay/index.html index ac4730f4..8c67af36 100644 --- a/www/G1PalPay/index.html +++ b/www/G1PalPay/index.html @@ -183,7 +183,7 @@ a { function countdown() { if (timeLeft == -1) { clearTimeout(timerId); - elem.innerHTML = "OK"; + elem.innerHTML = "OK"; window.open( redirectURL, "AstroTab"); } else { elem.innerHTML = timeLeft + " s";