This commit is contained in:
fred 2024-05-04 21:18:16 +02:00
parent 9a9f2382e5
commit 8e32370ef5
1 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,9 @@ if [[ "${EMAIL}" =~ ^[a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]]; then
if [[ ${source} != "LOCAL" ]]; then
EXTERNAL=$(grep -o "url='/[^']*'" ${INDEX} | sed "s/url='\(.*\)'/\1/" | awk -F"/" '{print $3}')
[[ ! -s $HOME/.zen/tmp/flashmem/tw/${EXTERNAL}/index.html ]] \
&& mkdir $HOME/.zen/tmp/flashmem/tw/${EXTERNAL} \
&& ipfs cat /ipfs/${EXTERNAL} > $HOME/.zen/tmp/flashmem/tw/${EXTERNAL}/index.html
&& mkdir -p $HOME/.zen/tmp/flashmem/tw/${EXTERNAL} \
&& ipfs --timeout=42s cat /ipfs/${EXTERNAL} > $HOME/.zen/tmp/flashmem/tw/${EXTERNAL}/index.html \
|| INDEX=""
INDEX="$HOME/.zen/tmp/flashmem/tw/${EXTERNAL}/index.html"
fi