cache restore
parent
b9076d6cd1
commit
26ee21b165
|
@ -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
|
||||
|
|
|
@ -183,7 +183,7 @@ a {
|
|||
function countdown() {
|
||||
if (timeLeft == -1) {
|
||||
clearTimeout(timerId);
|
||||
elem.innerHTML = "<a href='"+redirectURL+"' target='aframe'>OK</a>";
|
||||
elem.innerHTML = "<a target='aframe' href='"+redirectURL+"'>OK</a>";
|
||||
window.open( redirectURL, "AstroTab");
|
||||
} else {
|
||||
elem.innerHTML = timeLeft + " s";
|
||||
|
|
Loading…
Reference in New Issue