cache restore
This commit is contained in:
parent
b9076d6cd1
commit
26ee21b165
|
@ -149,8 +149,11 @@ if [[ ! ${TIDDLER} ]]; then
|
||||||
echo "No FILE -- TRYING TO RESTORE CACHE FROM TW --"
|
echo "No FILE -- TRYING TO RESTORE CACHE FROM TW --"
|
||||||
tiddlywiki --load ${INDEX} \
|
tiddlywiki --load ${INDEX} \
|
||||||
--output ~/.zen/game/players/${PLAYER}/G1CopierYoutube \
|
--output ~/.zen/game/players/${PLAYER}/G1CopierYoutube \
|
||||||
--render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" \
|
--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"
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -183,7 +183,7 @@ a {
|
||||||
function countdown() {
|
function countdown() {
|
||||||
if (timeLeft == -1) {
|
if (timeLeft == -1) {
|
||||||
clearTimeout(timerId);
|
clearTimeout(timerId);
|
||||||
elem.innerHTML = "<a href='"+redirectURL+"' target='aframe'>OK</a>";
|
elem.innerHTML = "<a target='aframe' href='"+redirectURL+"'>OK</a>";
|
||||||
window.open( redirectURL, "AstroTab");
|
window.open( redirectURL, "AstroTab");
|
||||||
} else {
|
} else {
|
||||||
elem.innerHTML = timeLeft + " s";
|
elem.innerHTML = timeLeft + " s";
|
||||||
|
|
Loading…
Reference in New Issue