From f9dbfd8dc9cf419350768b4e1ebebf9e3c0d4737 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 20 Oct 2023 01:32:28 +0200 Subject: [PATCH] relative linking : ln -s "./${YID}.TW.json" "${ZFILE}.json" --- ASTROBOT/G1CopierYoutube.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ASTROBOT/G1CopierYoutube.sh b/ASTROBOT/G1CopierYoutube.sh index d6fc0317..b33b48a5 100755 --- a/ASTROBOT/G1CopierYoutube.sh +++ b/ASTROBOT/G1CopierYoutube.sh @@ -157,7 +157,9 @@ if [[ ! ${TIDDLER} ]]; then 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" + cd ${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/ + ln -s "./${YID}.TW.json" "${ZFILE}.json" + cd - else ## REMOVE FILE FROM .yt-dlp.list - RETRY NEXT TIME 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 ## COPY JSON TIDDLER TO PLAYER - 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 - [[ $(diff ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} ) ]] \ && mv ~/.zen/tmp/${IPFSNODEID}/newindex.html ${INDEX} \