detect IPFS add error but continue loop

This commit is contained in:
fred 2023-01-17 23:46:44 +01:00
parent cac4f43687
commit e46a86ad74
2 changed files with 3 additions and 1 deletions

View File

@ -171,6 +171,8 @@ if [[ ! ${TIDDLER} ]]; then
ILINK=$(ipfs add -q "$HOME/.zen/tmp/yt-dlp/$ZFILE" | tail -n 1)
echo "/ipfs/$ILINK === $ZFILE"
[[ $ILINK == "" ]] && echo "BIG PROBLEM PAPA. NO IPFS " && continue
MIME=$(file --mime-type -b "$HOME/.zen/tmp/yt-dlp/$ZFILE")
## ADD TAGS

View File

@ -929,7 +929,7 @@ if [[ -s ~/Astroport/${CAT}/${MEDIAID}/${MEDIAKEY}.dragdrop.json ]]; then
echo "================================================"
echo
[[ $XDG_SESSION_TYPE == 'x11' ]] && xdg-open "$myIPFS/ipns/$ASTRONAUTENS"
[[ $XDG_SESSION_TYPE == 'x11' ]] && xdg-open "http://ipfs.localhost:8080/ipns/$ASTRONAUTENS"
else