create YASTRXBIAN file containing ipfs get sync command

This commit is contained in:
Armust Blegde 2020-12-24 17:52:34 +01:00
parent bf81061573
commit 2d61cc4711
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ isLINKinINDEX=$(grep "$NEWSHARE" ~/.zen/ipfs/xbian/${PREFIX}${XZUID})
# Is it a new file? Add it to INDEX
if [[ ! $isFILEinINDEX && ! $isLINKinINDEX ]]; then
echo "ipfs get -o ~/astroport/$TYPE/ /ipfs/$NEWSHARE/$file" >> ~/.zen/ipfs/xbian/${PREFIX}${XZUID}
echo "ipfs get -o ~/astroport/$TYPE/ \"/ipfs/$NEWSHARE/$file\"" >> ~/.zen/ipfs/xbian/${PREFIX}${XZUID}
else
if [[ $isFILEinINDEX ]]; then
echo "$file already in index" ## File was updated => Change OLDLINK