Update
This commit is contained in:
parent
1dc5190c43
commit
308cbfcb19
@ -8,15 +8,15 @@ WALLPAPERS_MD="./docs/WALLPAPERS.md"
|
|||||||
|
|
||||||
echo "# Wallpapers" >"$WALLPAPERS_MD"
|
echo "# Wallpapers" >"$WALLPAPERS_MD"
|
||||||
echo "" >>"$WALLPAPERS_MD"
|
echo "" >>"$WALLPAPERS_MD"
|
||||||
echo "Wallpapers can be found in the /home/wallpapers folder." >>"$WALLPAPERS_MD"
|
echo "Wallpapers can be found in the \`/home/wallpapers\` folder." >>"$WALLPAPERS_MD"
|
||||||
echo "" >>"$WALLPAPERS_MD"
|
echo "" >>"$WALLPAPERS_MD"
|
||||||
echo "| Name | Preview |" >>"$WALLPAPERS_MD"
|
echo "| Name | Preview |" >>"$WALLPAPERS_MD"
|
||||||
echo "| -- | -- |" >>"$WALLPAPERS_MD"
|
echo "| -- | -- |" >>"$WALLPAPERS_MD"
|
||||||
|
|
||||||
for file in $WALLPAPERS_FOLDER/*.png; do
|
for file in "$WALLPAPERS_FOLDER"/*.png; do
|
||||||
filename=$(basename $file)
|
filename=$(basename "$file")
|
||||||
echo "| $filename |  |" >>"$WALLPAPERS_MD"
|
echo "| $filename |  |" >>"$WALLPAPERS_MD"
|
||||||
done
|
done
|
||||||
|
|
||||||
pandoc -t commonmark_x "$WALLPAPERS_MD" -o "/tmp/wallpapers.md"
|
pandoc -t commonmark_x "$WALLPAPERS_MD" -o "/tmp/wallpapers.md"
|
||||||
mv "/tmp/wallpapers.md" "$WALLPAPERS_MD"
|
mv "/tmp/wallpapers.md" "$WALLPAPERS_MD"
|
||||||
|
Loading…
Reference in New Issue
Block a user