mirror of
https://github.com/ivabus/www
synced 2024-11-22 13:25:06 +03:00
#215 apply more lowered
This commit is contained in:
parent
a559f5455e
commit
0cd7a5cba9
1 changed files with 3 additions and 2 deletions
5
.github/build-package-pages.sh
vendored
5
.github/build-package-pages.sh
vendored
|
@ -11,9 +11,10 @@ for row in $(jq -r '.[] | @base64' < "$1"); do
|
|||
if [[ "$full_name" == *\/* ]] || [[ "$full_name" == *\\* ]]
|
||||
then
|
||||
mkdir -p "$2/+$full_name"
|
||||
# remove last folder
|
||||
rm -rf "$2/+$full_name"
|
||||
fi
|
||||
echo $full_name
|
||||
|
||||
touch "$2"/"+$full_name".md
|
||||
content="---
|
||||
type: page
|
||||
|
@ -22,5 +23,5 @@ maintainer: \"$(_jq '.maintainer')\"
|
|||
Description: \"$(_jq '.desc' | tr '\"' "'")\"
|
||||
layout: \"package-detail\"
|
||||
---"
|
||||
echo "$content" > "$2"/"+$(_jq '.full_name')".md
|
||||
echo "$content" > "$2"/"+$full_name".md
|
||||
done
|
Loading…
Reference in a new issue