diff --git a/.github/build-package-pages.sh b/.github/build-package-pages.sh index 410228c..5774526 100755 --- a/.github/build-package-pages.sh +++ b/.github/build-package-pages.sh @@ -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 \ No newline at end of file