forked from axiom-team/astrXbian
create YASTRXBIAN file containing ipfs get sync command
This commit is contained in:
parent
bf81061573
commit
2d61cc4711
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue