relative linking : ln -s "./${YID}.TW.json" "${ZFILE}.json"
This commit is contained in:
parent
45647e3037
commit
f9dbfd8dc9
|
@ -157,7 +157,9 @@ if [[ ! ${TIDDLER} ]]; then
|
||||||
|
|
||||||
if [[ -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/${YID}.TW.json ]]; then
|
if [[ -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/${YID}.TW.json ]]; then
|
||||||
rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" 2>/dev/null
|
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"
|
cd ${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/
|
||||||
|
ln -s "./${YID}.TW.json" "${ZFILE}.json"
|
||||||
|
cd -
|
||||||
else
|
else
|
||||||
## REMOVE FILE FROM .yt-dlp.list - RETRY NEXT TIME
|
## REMOVE FILE FROM .yt-dlp.list - RETRY NEXT TIME
|
||||||
grep -v -- "$YID" ${HOME}/.zen/.yt-dlp.list > /tmp/.yt-dlp.list
|
grep -v -- "$YID" ${HOME}/.zen/.yt-dlp.list > /tmp/.yt-dlp.list
|
||||||
|
@ -285,8 +287,9 @@ fi
|
||||||
if [[ -s ~/.zen/tmp/${IPFSNODEID}/newindex.html ]]; then
|
if [[ -s ~/.zen/tmp/${IPFSNODEID}/newindex.html ]]; then
|
||||||
|
|
||||||
## COPY JSON TIDDLER TO PLAYER
|
## COPY JSON TIDDLER TO PLAYER
|
||||||
ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" \
|
cd ${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/
|
||||||
"${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json"
|
ln -s "./$YID.TW.json" "${ZFILE}.json"
|
||||||
|
cd -
|
||||||
|
|
||||||
[[ $(diff ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} ) ]] \
|
[[ $(diff ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} ) ]] \
|
||||||
&& mv ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} \
|
&& mv ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} \
|
||||||
|
|
Loading…
Reference in New Issue