Skip to content

Commit

Permalink
update wk
Browse files Browse the repository at this point in the history
  • Loading branch information
puutaro committed Jul 2, 2024
1 parent 02e0033 commit acbf5f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/shell/gen_js_func_md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ IFS=$'\n'
if_file_list=($(find "${IF_DIR_PATH}" -type f | grep -v "/lib/"))
IFS="${old_ifs}"
exec_gen_md(){
local newline="NEW_LINE"
local src_path="${1}"
awk \
-v src_path="${src_path}" \
-v js_if_con="$(cat "${src_path}")" \
-v class_name=$(basename "${src_path}" | sed 's/\..*$//') \
-v js_if_con="$(\
cat "${src_path}" \
| sed 's/\\n/'${newline}'/g'\
)" \
-v class_name=$(\
basename "${src_path}" \
| sed 's/\..*$//'\
) \
-v classifi_func_dir_name=$(echo "${src_path}" \
| sed 's/'${IF_DIR_PATH//\//\\\/}'//g' \
| dirname "$(cat)" \
Expand Down

0 comments on commit acbf5f6

Please sign in to comment.