Skip to content

Instantly share code, notes, and snippets.

@knokmki612
Created January 7, 2022 15:19
Show Gist options
  • Save knokmki612/41b4dd92580c8c893e834c83c946114e to your computer and use it in GitHub Desktop.
Save knokmki612/41b4dd92580c8c893e834c83c946114e to your computer and use it in GitHub Desktop.
+++ dirname /var/home/kimiaki/.asdf/bin/asdf
++ dirname /var/home/kimiaki/.asdf/bin
+ . /var/home/kimiaki/.asdf/lib/utils.bash
++ GREP_OPTIONS=--color=never
++ GREP_COLORS=
++ ASDF_DIR=/var/home/kimiaki/.asdf
++ ASDF_DATA_DIR=
+ asdf_cmd exec hugo server
+ local ASDF_CMD_FILE args_offset
+ '[' shell == exec ']'
+ IFS=' '
+ read -r ASDF_CMD_FILE args_offset
++ find_asdf_cmd exec hugo server
++ local asdf_cmd_dir
+++ asdf_dir
+++ '[' -z /var/home/kimiaki/.asdf ']'
+++ printf '%s\n' /var/home/kimiaki/.asdf
++ asdf_cmd_dir=/var/home/kimiaki/.asdf/lib/commands
++ case "$1" in
++ printf '%s %s\n' /var/home/kimiaki/.asdf/lib/commands/command-exec.bash 2
+ '[' -z /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ '[' -x /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ '[' -f /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ set -- hugo server
+ . /var/home/kimiaki/.asdf/lib/commands/command-exec.bash
++ shim_exec_command hugo server
++ local shim_name
+++ basename hugo
++ shim_name=hugo
++ shim_args=('server')
++ local shim_args
++ '[' -z hugo ']'
++ with_shim_executable hugo exec_shim
++ local shim_name
+++ basename hugo
++ shim_name=hugo
++ local shim_exec=exec_shim
+++ asdf_data_dir
+++ local data_dir
+++ '[' -n '' ']'
+++ data_dir=/var/home/kimiaki/.asdf
+++ printf '%s\n' /var/home/kimiaki/.asdf
++ '[' '!' -f /var/home/kimiaki/.asdf/shims/hugo ']'
++ local selected_version
+++ select_version hugo
+++ shim_name=hugo
+++ local search_path
++++ pwd
+++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
+++ local shim_versions
+++ IFS='
'
+++ read -rd '' -a shim_versions
++++ get_shim_versions hugo
++++ shim_name=hugo
++++ shim_plugin_versions hugo
++++ local executable_name
+++++ basename hugo
++++ executable_name=hugo
++++ local shim_path
+++++ asdf_data_dir
+++++ local data_dir
+++++ '[' -n '' ']'
+++++ data_dir=/var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf
++++ shim_path=/var/home/kimiaki/.asdf/shims/hugo
++++ '[' -x /var/home/kimiaki/.asdf/shims/hugo ']'
++++ grep '# asdf-plugin: ' /var/home/kimiaki/.asdf/shims/hugo
++++ sed -e 's/# asdf-plugin: //'
++++ uniq
++++ shim_plugin_versions hugo
++++ local executable_name
++++ cut '-d ' -f 1
++++ awk '{print$1" system"}'
+++++ basename hugo
++++ executable_name=hugo
++++ local shim_path
+++++ asdf_data_dir
+++++ local data_dir
+++++ '[' -n '' ']'
+++++ data_dir=/var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf
++++ shim_path=/var/home/kimiaki/.asdf/shims/hugo
++++ '[' -x /var/home/kimiaki/.asdf/shims/hugo ']'
++++ grep '# asdf-plugin: ' /var/home/kimiaki/.asdf/shims/hugo
++++ sed -e 's/# asdf-plugin: //'
++++ uniq
+++ local plugins
+++ IFS='
'
+++ read -rd '' -a plugins
++++ shim_plugins hugo
++++ local executable_name
+++++ basename hugo
++++ executable_name=hugo
++++ local shim_path
+++++ asdf_data_dir
+++++ local data_dir
+++++ '[' -n '' ']'
+++++ data_dir=/var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf
++++ shim_path=/var/home/kimiaki/.asdf/shims/hugo
++++ '[' -x /var/home/kimiaki/.asdf/shims/hugo ']'
++++ grep '# asdf-plugin: ' /var/home/kimiaki/.asdf/shims/hugo
++++ sed -e 's/# asdf-plugin: //'
++++ cut '-d ' -f 1
++++ uniq
+++ for plugin_name in "${plugins[@]}"
+++ local version_and_path
+++ local version_string
+++ local usable_plugin_versions
+++ local _path
++++ find_versions hugo /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++ local plugin_name=hugo
++++ local search_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++ local version
+++++ get_version_from_env hugo
+++++ local plugin_name=hugo
+++++ local upcase_name
++++++ printf '%s\n' hugo
++++++ tr '[:lower:]-' '[:upper:]_'
+++++ upcase_name=HUGO
+++++ local version_env_var=ASDF_HUGO_VERSION
+++++ local version=
+++++ printf '%s\n' ''
++++ version=
++++ '[' -n '' ']'
++++ local plugin_path
+++++ get_plugin_path hugo
+++++ test -n hugo
++++++ asdf_data_dir
++++++ local data_dir
++++++ '[' -n '' ']'
++++++ data_dir=/var/home/kimiaki/.asdf
++++++ printf '%s\n' /var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf/plugins/hugo
++++ plugin_path=/var/home/kimiaki/.asdf/plugins/hugo
++++ local legacy_config
+++++ get_asdf_config_value legacy_version_file
+++++ local key=legacy_version_file
+++++ local config_path=/var/home/kimiaki/.asdfrc
++++++ asdf_dir
++++++ '[' -z /var/home/kimiaki/.asdf ']'
++++++ printf '%s\n' /var/home/kimiaki/.asdf
+++++ local default_config_path=/var/home/kimiaki/.asdf/defaults
+++++ local local_config_path
++++++ find_file_upwards .asdfrc
++++++ local name=.asdfrc
++++++ local search_path
+++++++ pwd
++++++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info '!=' / ']'
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/.asdfrc ']'
+++++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612
++++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612 '!=' / ']'
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/.asdfrc ']'
+++++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612
++++++ search_path=/var/home/kimiaki/Workspace/github.com
++++++ '[' /var/home/kimiaki/Workspace/github.com '!=' / ']'
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/.asdfrc ']'
+++++++ dirname /var/home/kimiaki/Workspace/github.com
++++++ search_path=/var/home/kimiaki/Workspace
++++++ '[' /var/home/kimiaki/Workspace '!=' / ']'
++++++ '[' -f /var/home/kimiaki/Workspace/.asdfrc ']'
+++++++ dirname /var/home/kimiaki/Workspace
++++++ search_path=/var/home/kimiaki
++++++ '[' /var/home/kimiaki '!=' / ']'
++++++ '[' -f /var/home/kimiaki/.asdfrc ']'
+++++++ dirname /var/home/kimiaki
++++++ search_path=/var/home
++++++ '[' /var/home '!=' / ']'
++++++ '[' -f /var/home/.asdfrc ']'
+++++++ dirname /var/home
++++++ search_path=/var
++++++ '[' /var '!=' / ']'
++++++ '[' -f /var/.asdfrc ']'
+++++++ dirname /var
++++++ search_path=/
++++++ '[' / '!=' / ']'
+++++ local_config_path=
+++++ get_asdf_config_value_from_file '' legacy_version_file
+++++ local config_path=
+++++ local key=legacy_version_file
+++++ '[' '!' -f '' ']'
+++++ return 1
+++++ get_asdf_config_value_from_file /var/home/kimiaki/.asdfrc legacy_version_file
+++++ local config_path=/var/home/kimiaki/.asdfrc
+++++ local key=legacy_version_file
+++++ '[' '!' -f /var/home/kimiaki/.asdfrc ']'
+++++ return 1
+++++ get_asdf_config_value_from_file /var/home/kimiaki/.asdf/defaults legacy_version_file
+++++ local config_path=/var/home/kimiaki/.asdf/defaults
+++++ local key=legacy_version_file
+++++ '[' '!' -f /var/home/kimiaki/.asdf/defaults ']'
+++++ local result
++++++ grep -E '^\s*legacy_version_file\s*=\s*' /var/home/kimiaki/.asdf/defaults
++++++ head
++++++ awk -F = '{print $2}'
++++++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+++++ result=no
+++++ '[' -n no ']'
+++++ printf '%s\n' no
+++++ return 0
++++ legacy_config=no
++++ local legacy_list_filenames_script
++++ legacy_list_filenames_script=/var/home/kimiaki/.asdf/plugins/hugo/bin/list-legacy-filenames
++++ local legacy_filenames=
++++ '[' no = yes ']'
++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info '!=' / ']'
+++++ get_version_in_dir hugo /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info ''
+++++ local plugin_name=hugo
+++++ local search_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
+++++ local legacy_filenames=
+++++ local asdf_version
++++++ parse_asdf_version_file /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/.tool-versions hugo
++++++ local file_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/.tool-versions
++++++ local plugin_name=hugo
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/.tool-versions ']'
+++++ asdf_version=
+++++ '[' -n '' ']'
++++ version=
++++ '[' -n '' ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612
++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612 '!=' / ']'
+++++ get_version_in_dir hugo /var/home/kimiaki/Workspace/github.com/knokmki612 ''
+++++ local plugin_name=hugo
+++++ local search_path=/var/home/kimiaki/Workspace/github.com/knokmki612
+++++ local legacy_filenames=
+++++ local asdf_version
++++++ parse_asdf_version_file /var/home/kimiaki/Workspace/github.com/knokmki612/.tool-versions hugo
++++++ local file_path=/var/home/kimiaki/Workspace/github.com/knokmki612/.tool-versions
++++++ local plugin_name=hugo
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/.tool-versions ']'
+++++ asdf_version=
+++++ '[' -n '' ']'
++++ version=
++++ '[' -n '' ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612
++++ search_path=/var/home/kimiaki/Workspace/github.com
++++ '[' /var/home/kimiaki/Workspace/github.com '!=' / ']'
+++++ get_version_in_dir hugo /var/home/kimiaki/Workspace/github.com ''
+++++ local plugin_name=hugo
+++++ local search_path=/var/home/kimiaki/Workspace/github.com
+++++ local legacy_filenames=
+++++ local asdf_version
++++++ parse_asdf_version_file /var/home/kimiaki/Workspace/github.com/.tool-versions hugo
++++++ local file_path=/var/home/kimiaki/Workspace/github.com/.tool-versions
++++++ local plugin_name=hugo
++++++ '[' -f /var/home/kimiaki/Workspace/github.com/.tool-versions ']'
+++++ asdf_version=
+++++ '[' -n '' ']'
++++ version=
++++ '[' -n '' ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com
++++ search_path=/var/home/kimiaki/Workspace
++++ '[' /var/home/kimiaki/Workspace '!=' / ']'
+++++ get_version_in_dir hugo /var/home/kimiaki/Workspace ''
+++++ local plugin_name=hugo
+++++ local search_path=/var/home/kimiaki/Workspace
+++++ local legacy_filenames=
+++++ local asdf_version
++++++ parse_asdf_version_file /var/home/kimiaki/Workspace/.tool-versions hugo
++++++ local file_path=/var/home/kimiaki/Workspace/.tool-versions
++++++ local plugin_name=hugo
++++++ '[' -f /var/home/kimiaki/Workspace/.tool-versions ']'
+++++ asdf_version=
+++++ '[' -n '' ']'
++++ version=
++++ '[' -n '' ']'
+++++ dirname /var/home/kimiaki/Workspace
++++ search_path=/var/home/kimiaki
++++ '[' /var/home/kimiaki '!=' / ']'
+++++ get_version_in_dir hugo /var/home/kimiaki ''
+++++ local plugin_name=hugo
+++++ local search_path=/var/home/kimiaki
+++++ local legacy_filenames=
+++++ local asdf_version
++++++ parse_asdf_version_file /var/home/kimiaki/.tool-versions hugo
++++++ local file_path=/var/home/kimiaki/.tool-versions
++++++ local plugin_name=hugo
++++++ '[' -f /var/home/kimiaki/.tool-versions ']'
++++++ local version
+++++++ strip_tool_version_comments /var/home/kimiaki/.tool-versions
+++++++ local tool_version_path=/var/home/kimiaki/.tool-versions
+++++++ grep '^hugo '
+++++++ IFS=
+++++++ read -r tool_line
+++++++ sed -e 's/^hugo //'
++++++++ cut -f1 -d#
++++++++ sed -e 's/[[:space:]]*$//'
+++++++ new_line='nodejs lts'
+++++++ [[ -n nodejs lts ]]
+++++++ printf '%s\n' 'nodejs lts'
+++++++ IFS=
+++++++ read -r tool_line
++++++++ cut -f1 -d#
++++++++ sed -e 's/[[:space:]]*$//'
+++++++ new_line='java openjdk-17.0.1'
+++++++ [[ -n java openjdk-17.0.1 ]]
+++++++ printf '%s\n' 'java openjdk-17.0.1'
+++++++ IFS=
+++++++ read -r tool_line
++++++++ cut -f1 -d#
++++++++ sed -e 's/[[:space:]]*$//'
+++++++ new_line='hugo 0.91.2'
+++++++ [[ -n hugo 0.91.2 ]]
+++++++ printf '%s\n' 'hugo 0.91.2'
+++++++ IFS=
+++++++ read -r tool_line
+++++++ '[' -n '' ']'
++++++ version=0.91.2
++++++ '[' -n 0.91.2 ']'
++++++ printf '%s\n' 0.91.2
++++++ return 0
+++++ asdf_version=0.91.2
+++++ '[' -n 0.91.2 ']'
+++++ printf '%s\n' '0.91.2|/var/home/kimiaki/.tool-versions'
+++++ return 0
++++ version='0.91.2|/var/home/kimiaki/.tool-versions'
++++ '[' -n '0.91.2|/var/home/kimiaki/.tool-versions' ']'
++++ printf '%s\n' '0.91.2|/var/home/kimiaki/.tool-versions'
++++ return 0
+++ version_and_path='0.91.2|/var/home/kimiaki/.tool-versions'
+++ IFS='|'
+++ read -r version_string _path
+++ IFS=' '
+++ read -r -a usable_plugin_versions
+++ for plugin_version in "${usable_plugin_versions[@]}"
+++ for plugin_and_version in "${shim_versions[@]}"
+++ local plugin_shim_name
+++ local plugin_shim_version
+++ IFS=' '
+++ read -r plugin_shim_name plugin_shim_version
+++ [[ hugo == \h\u\g\o ]]
+++ [[ 0.91.2 == \0\.\9\1\.\2 ]]
+++ printf '%s\n' 'hugo 0.91.2'
+++ return
++ selected_version='hugo 0.91.2'
++ '[' -z 'hugo 0.91.2' ']'
++ '[' -n 'hugo 0.91.2' ']'
++ local plugin_name
++ local full_version
++ local plugin_path
++ IFS=' '
++ read -r plugin_name full_version
+++ get_plugin_path hugo
+++ test -n hugo
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n '' ']'
++++ data_dir=/var/home/kimiaki/.asdf
++++ printf '%s\n' /var/home/kimiaki/.asdf
+++ printf '%s\n' /var/home/kimiaki/.asdf/plugins/hugo
++ plugin_path=/var/home/kimiaki/.asdf/plugins/hugo
++ with_plugin_env hugo 0.91.2 run_within_env
++ local plugin_name=hugo
++ local full_version=0.91.2
++ local callback=run_within_env
++ IFS=:
++ read -r -a version_info
++ '[' 0.91.2 = ref ']'
++ local install_type=version
++ local version=0.91.2
++ '[' 0.91.2 = system ']'
++ local plugin_path
+++ get_plugin_path hugo
+++ test -n hugo
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n '' ']'
++++ data_dir=/var/home/kimiaki/.asdf
++++ printf '%s\n' /var/home/kimiaki/.asdf
+++ printf '%s\n' /var/home/kimiaki/.asdf/plugins/hugo
++ plugin_path=/var/home/kimiaki/.asdf/plugins/hugo
++ local path exec_paths
+++ list_plugin_exec_paths hugo 0.91.2
+++ local plugin_name=hugo
+++ local full_version=0.91.2
+++ check_if_plugin_exists hugo
+++ local plugin_name=hugo
+++ '[' -z hugo ']'
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n '' ']'
++++ data_dir=/var/home/kimiaki/.asdf
++++ printf '%s\n' /var/home/kimiaki/.asdf
+++ '[' '!' -d /var/home/kimiaki/.asdf/plugins/hugo ']'
+++ IFS=:
+++ read -r -a version_info
+++ '[' 0.91.2 = ref ']'
+++ '[' 0.91.2 = path ']'
+++ local install_type=version
+++ local version=0.91.2
+++ local plugin_shims_path
++++ get_plugin_path hugo
++++ test -n hugo
+++++ asdf_data_dir
+++++ local data_dir
+++++ '[' -n '' ']'
+++++ data_dir=/var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf
++++ printf '%s\n' /var/home/kimiaki/.asdf/plugins/hugo
+++ plugin_shims_path=/var/home/kimiaki/.asdf/plugins/hugo/shims
+++ '[' -d /var/home/kimiaki/.asdf/plugins/hugo/shims ']'
++++ list_plugin_bin_paths hugo 0.91.2 version
++++ local plugin_name=hugo
++++ local version=0.91.2
++++ local install_type=version
++++ local plugin_path
+++++ get_plugin_path hugo
+++++ test -n hugo
++++++ asdf_data_dir
++++++ local data_dir
++++++ '[' -n '' ']'
++++++ data_dir=/var/home/kimiaki/.asdf
++++++ printf '%s\n' /var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf/plugins/hugo
++++ plugin_path=/var/home/kimiaki/.asdf/plugins/hugo
++++ local install_path
+++++ get_install_path hugo version 0.91.2
+++++ local plugin=hugo
+++++ local install_type=version
+++++ local version=0.91.2
+++++ local install_dir
++++++ asdf_data_dir
++++++ local data_dir
++++++ '[' -n '' ']'
++++++ data_dir=/var/home/kimiaki/.asdf
++++++ printf '%s\n' /var/home/kimiaki/.asdf
+++++ install_dir=/var/home/kimiaki/.asdf/installs
+++++ mkdir -p /var/home/kimiaki/.asdf/installs/hugo
+++++ '[' version = version ']'
+++++ printf '%s/%s/%s\n' /var/home/kimiaki/.asdf/installs hugo 0.91.2
++++ install_path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2
++++ '[' -f /var/home/kimiaki/.asdf/plugins/hugo/bin/list-bin-paths ']'
++++ local space_separated_list_of_bin_paths=bin
++++ printf '%s\n' bin
+++ space_separated_list_of_bin_paths=bin
+++ IFS=' '
+++ read -r -a all_bin_paths
+++ local install_path
++++ get_install_path hugo version 0.91.2
++++ local plugin=hugo
++++ local install_type=version
++++ local version=0.91.2
++++ local install_dir
+++++ asdf_data_dir
+++++ local data_dir
+++++ '[' -n '' ']'
+++++ data_dir=/var/home/kimiaki/.asdf
+++++ printf '%s\n' /var/home/kimiaki/.asdf
++++ install_dir=/var/home/kimiaki/.asdf/installs
++++ mkdir -p /var/home/kimiaki/.asdf/installs/hugo
++++ '[' version = version ']'
++++ printf '%s/%s/%s\n' /var/home/kimiaki/.asdf/installs hugo 0.91.2
+++ install_path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2
+++ for bin_path in "${all_bin_paths[@]}"
+++ printf '%s\n' /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin
++ exec_paths=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin
+++ tr '\n' :
++ path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
++ '[' '!' -f /var/home/kimiaki/.asdf/plugins/hugo/bin/exec-env ']'
++ PATH=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
++ run_within_env
++ local path
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n '' ']'
++++ data_dir=/var/home/kimiaki/.asdf
++++ printf '%s\n' /var/home/kimiaki/.asdf
+++ remove_path_from_path /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin /var/home/kimiaki/.asdf/shims
+++ local PATH=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
+++ local path=/var/home/kimiaki/.asdf/shims
+++ substitute /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin /var/home/kimiaki/.asdf/shims ''
+++ local input=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/shims:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
+++ sed -e 's|::|:|g'
+++ local find_str=/var/home/kimiaki/.asdf/shims
+++ local replace=
+++ printf %s /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin::/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
++ path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
+++ PATH=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin:/var/home/kimiaki/.asdf/bin:/var/home/kimiaki/.local/bin:/var/home/kimiaki/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
+++ command -v hugo
++ executable_path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin/hugo
++ '[' -x /var/home/kimiaki/.asdf/plugins/hugo/bin/exec-path ']'
++ exec_shim hugo 0.91.2 /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin/hugo
++ local plugin_name=hugo
++ local version=0.91.2
++ local executable_path=/var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin/hugo
++ '[' '!' -x /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin/hugo ']'
++ asdf_run_hook pre_hugo_hugo server
++ local hook_name=pre_hugo_hugo
++ local hook_cmd
+++ get_asdf_config_value pre_hugo_hugo
+++ local key=pre_hugo_hugo
+++ local config_path=/var/home/kimiaki/.asdfrc
++++ asdf_dir
++++ '[' -z /var/home/kimiaki/.asdf ']'
++++ printf '%s\n' /var/home/kimiaki/.asdf
+++ local default_config_path=/var/home/kimiaki/.asdf/defaults
+++ local local_config_path
++++ find_file_upwards .asdfrc
++++ local name=.asdfrc
++++ local search_path
+++++ pwd
++++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info '!=' / ']'
++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/.asdfrc ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info
++++ search_path=/var/home/kimiaki/Workspace/github.com/knokmki612
++++ '[' /var/home/kimiaki/Workspace/github.com/knokmki612 '!=' / ']'
++++ '[' -f /var/home/kimiaki/Workspace/github.com/knokmki612/.asdfrc ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com/knokmki612
++++ search_path=/var/home/kimiaki/Workspace/github.com
++++ '[' /var/home/kimiaki/Workspace/github.com '!=' / ']'
++++ '[' -f /var/home/kimiaki/Workspace/github.com/.asdfrc ']'
+++++ dirname /var/home/kimiaki/Workspace/github.com
++++ search_path=/var/home/kimiaki/Workspace
++++ '[' /var/home/kimiaki/Workspace '!=' / ']'
++++ '[' -f /var/home/kimiaki/Workspace/.asdfrc ']'
+++++ dirname /var/home/kimiaki/Workspace
++++ search_path=/var/home/kimiaki
++++ '[' /var/home/kimiaki '!=' / ']'
++++ '[' -f /var/home/kimiaki/.asdfrc ']'
+++++ dirname /var/home/kimiaki
++++ search_path=/var/home
++++ '[' /var/home '!=' / ']'
++++ '[' -f /var/home/.asdfrc ']'
+++++ dirname /var/home
++++ search_path=/var
++++ '[' /var '!=' / ']'
++++ '[' -f /var/.asdfrc ']'
+++++ dirname /var
++++ search_path=/
++++ '[' / '!=' / ']'
+++ local_config_path=
+++ get_asdf_config_value_from_file '' pre_hugo_hugo
+++ local config_path=
+++ local key=pre_hugo_hugo
+++ '[' '!' -f '' ']'
+++ return 1
+++ get_asdf_config_value_from_file /var/home/kimiaki/.asdfrc pre_hugo_hugo
+++ local config_path=/var/home/kimiaki/.asdfrc
+++ local key=pre_hugo_hugo
+++ '[' '!' -f /var/home/kimiaki/.asdfrc ']'
+++ return 1
+++ get_asdf_config_value_from_file /var/home/kimiaki/.asdf/defaults pre_hugo_hugo
+++ local config_path=/var/home/kimiaki/.asdf/defaults
+++ local key=pre_hugo_hugo
+++ '[' '!' -f /var/home/kimiaki/.asdf/defaults ']'
+++ local result
++++ grep -E '^\s*pre_hugo_hugo\s*=\s*' /var/home/kimiaki/.asdf/defaults
++++ head
++++ awk -F = '{print $2}'
++++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+++ result=
+++ '[' -n '' ']'
+++ return 2
++ hook_cmd=
++ '[' -n '' ']'
++ pre_status=0
++ '[' 0 -ne 0 ']'
++ exec /var/home/kimiaki/.asdf/installs/hugo/0.91.2/bin/hugo server
Start building sites …
hugo v0.91.2-1798BD3F linux/amd64 BuildDate=2021-12-23T15:33:34Z VendorInfo=gohugoio
Error: Error building site: POSTCSS: failed to transform "style/style.css" (text/css): +++ dirname /var/home/kimiaki/.asdf/bin/asdf
++ dirname /var/home/kimiaki/.asdf/bin
+ . /var/home/kimiaki/.asdf/lib/utils.bash
++ GREP_OPTIONS=--color=never
++ GREP_COLORS=
++ ASDF_DIR=
++ ASDF_DATA_DIR=
+ asdf_cmd exec npx --no-install postcss --config /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/themes/fill-and-stroke/postcss.config.js
+ local ASDF_CMD_FILE args_offset
+ '[' shell == exec ']'
+ IFS=' '
+ read -r ASDF_CMD_FILE args_offset
++ find_asdf_cmd exec npx --no-install postcss --config /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/themes/fill-and-stroke/postcss.config.js
++ local asdf_cmd_dir
+++ asdf_dir
+++ '[' -z '' ']'
+++ local current_script_path=/var/home/kimiaki/.asdf/lib/utils.bash
+++ export ASDF_DIR
++++++ dirname /var/home/kimiaki/.asdf/lib/utils.bash
+++++ dirname /var/home/kimiaki/.asdf/lib
++++ cd /var/home/kimiaki/.asdf
++++ pwd
+++ ASDF_DIR=/var/home/kimiaki/.asdf
+++ printf '%s\n' /var/home/kimiaki/.asdf
++ asdf_cmd_dir=/var/home/kimiaki/.asdf/lib/commands
++ case "$1" in
++ printf '%s %s\n' /var/home/kimiaki/.asdf/lib/commands/command-exec.bash 2
+ '[' -z /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ '[' -x /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ '[' -f /var/home/kimiaki/.asdf/lib/commands/command-exec.bash ']'
+ set -- npx --no-install postcss --config /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/themes/fill-and-stroke/postcss.config.js
+ . /var/home/kimiaki/.asdf/lib/commands/command-exec.bash
++ shim_exec_command npx --no-install postcss --config /var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/themes/fill-and-stroke/postcss.config.js
++ local shim_name
+++ basename npx
++ shim_name=npx
++ shim_args=('--no-install' 'postcss' '--config' '/var/home/kimiaki/Workspace/github.com/knokmki612/kuno.kdns.info/themes/fill-and-stroke/postcss.config.js')
++ local shim_args
++ '[' -z npx ']'
++ with_shim_executable npx exec_shim
++ local shim_name
+++ basename npx
++ shim_name=npx
++ local shim_exec=exec_shim
+++ asdf_data_dir
+++ local data_dir
+++ '[' -n '' ']'
+++ data_dir=/.asdf
+++ printf '%s\n' /.asdf
++ '[' '!' -f /.asdf/shims/npx ']'
++ printf '%s %s %s\n' 'unknown command:' npx. 'Perhaps you have to reshim?'
unknown command: npx. Perhaps you have to reshim?
++ return 1
++ exit 1
Built in 81 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment