mirror of
https://gitea.phreedom.club/localhost_frssoft/dybr2fedi.git
synced 2024-11-29 15:01:27 +00:00
Change default shell
Conflicts with new sh -> dash alias
This commit is contained in:
parent
d6f711354a
commit
feb99ee853
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
#Пробный образец "моста" Дыбра в gemini
|
||||
#На данный момент только для аккаунта Лиэс
|
||||
|
@ -50,7 +50,7 @@ for i in $(jq '.["data"] | .[].id' "$basedir"/response.json); do
|
|||
plain_content=$(echo "$plain_content" | sed "s|\[$placeholder\]|=> $img\n|g")
|
||||
index=$(expr $index + 1)
|
||||
done
|
||||
echo "# $title\n$plain_content\n\ntags: $tags\n=> $orig orig" > $baseblogdir/$raw_id.gmi
|
||||
echo -e "# $title\n$plain_content\n\ntags: $tags\n=> $orig orig" > $baseblogdir/$raw_id.gmi
|
||||
touch -d "$published" $baseblogdir/$raw_id.gmi
|
||||
echo "=> $raw_id.gmi $title ($published)" | cat - $baseblogdir/index.gmi > $basedir/tmp && mv $basedir/tmp $baseblogdir/index.gmi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue