Change default shell

Conflicts with new sh -> dash alias
This commit is contained in:
localhost_frssoft 2023-03-19 01:04:07 +03:00
parent d6f711354a
commit feb99ee853

View file

@ -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