-
-
Save gardar/892d26ec4de0f7bace104deadff031d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ set -eEuo pipefail | |
+ shopt -s lastpipe | |
+ IFS=' | |
' | |
+ export LC_COLLATE=C | |
+ LC_COLLATE=C | |
+ [[ -f ./aconfmgr ]] | |
+ xdg_config_home=/home/g/.config | |
+ config_dir=/home/g/.config/aconfmgr | |
+ tmp_dir=/tmp/aconfmgr-g | |
+ src_dir=/usr/lib/aconfmgr | |
+ source /usr/lib/aconfmgr/main.bash | |
++ aconfmgr_version=0.0.0 | |
++ source /usr/lib/aconfmgr/common.bash | |
+++ PACMAN=pacman | |
+++ output_dir=/tmp/aconfmgr-g/output | |
+++ system_dir=/tmp/aconfmgr-g/system | |
+++ [[ 1000 == 0 ]] | |
+++ aur_dir=/tmp/aconfmgr-g/aur | |
+++ default_file_mode=644 | |
+++ ANSI_clear_line='[0K' | |
+++ ANSI_color_R='[1;31m' | |
+++ ANSI_color_G='[1;32m' | |
+++ ANSI_color_Y='[1;33m' | |
+++ ANSI_color_B='[1;34m' | |
+++ ANSI_color_M='[1;35m' | |
+++ ANSI_color_C='[1;36m' | |
+++ ANSI_color_W='[1;39m' | |
+++ ANSI_reset='[0m' | |
+++ verbose=0 | |
+++ lint_config=false | |
+++ umask 22 | |
+++ aconfmgr_action= | |
+++ aconfmgr_action_args=() | |
+++ ignore_paths=('/dev' '/home' '/media' '/mnt' '/proc' '/root' '/run' '/sys' '/tmp' '/var/cache') | |
+++ priority_files=(/etc/passwd /etc/group /etc/pacman.conf /etc/pacman.d/mirrorlist /etc/makepkg.conf) | |
+++ declare -A file_content_filters | |
+++ warn_size_threshold=10485760 | |
+++ warn_file_count_threshold=1000 | |
+++ warn_tmp_df_threshold=1048576 | |
+++ makepkg_user=nobody | |
+++ skip_config=n | |
+++ skip_inspection=n | |
+++ skip_checksums=n | |
+++ typeset -A file_property_kind_exists | |
+++ pacman_opts=("$PACMAN") | |
+++ aurman_opts=(aurman) | |
+++ pacaur_opts=(pacaur) | |
+++ yaourt_opts=(yaourt) | |
+++ yay_opts=(yay) | |
+++ paru_opts=(paru) | |
+++ makepkg_opts=(makepkg) | |
+++ diff_opts=(diff '--color=auto') | |
+++ aur_helper= | |
+++ aur_helpers=(aurman pacaur yaourt yay paru makepkg) | |
+++ [[ 1000 == 0 ]] | |
+++ base_devel_installed=n | |
+++ prompt_mode=normal | |
+++ log_indent=: | |
+++ trap OnError EXIT ERR | |
+++ [[ 1000 == 0 ]] | |
+++ empty_array=() | |
+++ : | |
+++ : | |
++ source /usr/lib/aconfmgr/save.bash | |
+++ : | |
++ source /usr/lib/aconfmgr/apply.bash | |
+++ : | |
++ source /usr/lib/aconfmgr/check.bash | |
+++ : | |
++ source /usr/lib/aconfmgr/diff.bash | |
+++ : | |
++ source /usr/lib/aconfmgr/helpers.bash | |
+++ : | |
++ Main save | |
++ local color= | |
++ [[ 1 != 0 ]] | |
++ case "$1" in | |
++ [[ -n '' ]] | |
++ aconfmgr_action=save | |
++ shift | |
++ [[ save == diff ]] | |
++ [[ 0 != 0 ]] | |
++ case "$color" in | |
++ '[' -t 1 ']' | |
++ case "$aconfmgr_action" in | |
++ AconfSave | |
++ local config_save_target=/home/g/.config/aconfmgr/99-unsorted.sh | |
++ local modified=n | |
++ AconfCompile | |
++ LogEnter 'Collecting data...\n' | |
++ Log 'Collecting data...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Collecting data...\n ]] | |
++ local 'fmt=Collecting data...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mCollecting data...\n[0m' : | |
[0K[1;34m: [1;39mCollecting data... | |
[0m++ log_indent=:: | |
++ AconfCompileOutput | |
++ LogEnter 'Compiling user configuration...\n' | |
++ Log 'Compiling user configuration...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Compiling user configuration...\n ]] | |
++ local 'fmt=Compiling user configuration...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mCompiling user configuration...\n[0m' :: | |
[0K[1;34m:: [1;39mCompiling user configuration... | |
[0m++ log_indent=::: | |
++ [[ n == y ]] | |
++ mkdir --mode=700 --parents /tmp/aconfmgr-g | |
++ rm -rf /tmp/aconfmgr-g/output | |
++ mkdir --parents /tmp/aconfmgr-g/output | |
++ mkdir /tmp/aconfmgr-g/output/files | |
++ touch /tmp/aconfmgr-g/output/packages.txt | |
++ touch /tmp/aconfmgr-g/output/foreign-packages.txt | |
++ touch /tmp/aconfmgr-g/output/file-props.txt | |
++ touch /tmp/aconfmgr-g/output/warnings | |
++ mkdir --parents /home/g/.config/aconfmgr | |
+++ Color C %q /home/g/.config/aconfmgr | |
+++ local var=ANSI_color_C | |
+++ printf -- %s '[1;36m' | |
+++ shift | |
+++ printf -- %q /home/g/.config/aconfmgr | |
+++ printf -- %s '[1;39m' | |
++ Log 'Using configuration in %s\n' '[1;36m/home/g/.config/aconfmgr[1;39m' | |
++ [[ 2 != 0 ]] | |
++ [[ -n Using configuration in %s\n ]] | |
++ local 'fmt=Using configuration in %s\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mUsing configuration in %s\n[0m' ::: '[1;36m/home/g/.config/aconfmgr[1;39m' | |
[0K[1;34m::: [1;39mUsing configuration in [1;36m/home/g/.config/aconfmgr[1;39m | |
[0m++ ignore_packages=() | |
++ typeset -ag ignore_packages | |
++ ignore_foreign_packages=() | |
++ typeset -ag ignore_foreign_packages | |
++ typeset -Ag used_files | |
++ local found=n | |
++ local file | |
++ for file in "$config_dir"/*.sh | |
++ [[ -e /home/g/.config/aconfmgr/*.sh ]] | |
++ false | |
++ [[ n == y ]] | |
++ LogLeave 'Done (configuration not found).\n' | |
++ [[ 1 == 0 ]] | |
++ Log 'Done (configuration not found).\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Done (configuration not found).\n ]] | |
++ local 'fmt=Done (configuration not found).\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mDone (configuration not found).\n[0m' ::: | |
[0K[1;34m::: [1;39mDone (configuration not found). | |
[0m++ log_indent=:: | |
++ AconfCompileSystem | |
++ LogEnter 'Inspecting system state...\n' | |
++ Log 'Inspecting system state...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Inspecting system state...\n ]] | |
++ local 'fmt=Inspecting system state...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mInspecting system state...\n[0m' :: | |
[0K[1;34m:: [1;39mInspecting system state... | |
[0m++ log_indent=::: | |
++ [[ n == y ]] | |
++ mkdir --mode=700 --parents /tmp/aconfmgr-g | |
++ rm -rf /tmp/aconfmgr-g/system | |
++ mkdir --parents /tmp/aconfmgr-g/system | |
++ mkdir /tmp/aconfmgr-g/system/files | |
++ touch /tmp/aconfmgr-g/system/file-props.txt | |
++ touch /tmp/aconfmgr-g/system/orig-file-props.txt | |
++ LogEnter 'Querying package list...\n' | |
++ Log 'Querying package list...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Querying package list...\n ]] | |
++ local 'fmt=Querying package list...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mQuerying package list...\n[0m' ::: | |
[0K[1;34m::: [1;39mQuerying package list... | |
[0m++ log_indent=:::: | |
++ pacman --query --quiet --explicit --native | |
++ sort | |
++ grep -vFxf /dev/fd/63 | |
+++ PrintArray ignore_packages | |
+++ local name=ignore_packages | |
+++ local size | |
++++ eval 'echo ${#ignore_packages[*]}' | |
+++++ echo 0 | |
+++ size=0 | |
+++ [[ 0 != 0 ]] | |
++ pacman --query --quiet --explicit --foreign | |
++ sort | |
++ grep -vFxf /dev/fd/63 | |
+++ PrintArray ignore_foreign_packages | |
+++ local name=ignore_foreign_packages | |
+++ local size | |
++++ eval 'echo ${#ignore_foreign_packages[*]}' | |
+++++ echo 0 | |
+++ size=0 | |
+++ [[ 0 != 0 ]] | |
++ LogLeave | |
++ [[ 0 == 0 ]] | |
++ Log 'Done.\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Done.\n ]] | |
++ local 'fmt=Done.\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mDone.\n[0m' :::: | |
[0K[1;34m:::: [1;39mDone. | |
[0m++ log_indent=::: | |
++ local -a found_files | |
++ found_files=() | |
++ local -A found_file_edited | |
++ found_file_edited=() | |
++ local -a ignore_args | |
++ AconfCreateFindIgnoreArgs ignore_args /dev /home /media /mnt /proc /root /run /sys /tmp /var/cache | |
++ local ignore_args_varname=ignore_args | |
++ local -n ignore_args_var=ignore_args | |
++ shift | |
++ ignore_paths=('/dev' '/home' '/media' '/mnt' '/proc' '/root' '/run' '/sys' '/tmp' '/var/cache') | |
++ local ignore_paths | |
++ simple_ignore_paths=() | |
++ local simple_ignore_paths | |
++ local ignore_path | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /dev =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /home =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /media =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /mnt =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /proc =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /root =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /run =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /sys =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /tmp =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ for ignore_path in "${ignore_paths[@]}" | |
++ [[ /var/cache =~ [^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ .*-] ]] | |
++ simple_ignore_paths+=("${ignore_path}") | |
++ '[' 10 -ne 0 ']' | |
++ local ignore_regexps | |
++ echo -n '/dev | |
/home | |
/media | |
/mnt | |
/proc | |
/root | |
/run | |
/sys | |
/tmp | |
/var/cache' | |
++ mapfile -t ignore_regexps | |
++ sed 's|[^*abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_/ ]|[&]|g; s|\*|.*|g' | |
++ ignore_args_var+=(-regex "$( IFS='|' ; echo "${ignore_regexps[*]}" )" -o) | |
+++ IFS='|' | |
+++ echo '/dev|/home|/media|/mnt|/proc|/root|/run|/sys|/tmp|/var/cache' | |
++ ignore_args_var+=(-false) | |
++ LogEnter 'Enumerating owned files...\n' | |
++ Log 'Enumerating owned files...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Enumerating owned files...\n ]] | |
++ local 'fmt=Enumerating owned files...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mEnumerating owned files...\n[0m' ::: | |
[0K[1;34m::: [1;39mEnumerating owned files... | |
[0m++ log_indent=:::: | |
++ mkdir --parents /tmp/aconfmgr-g | |
++ pacman --query --list --quiet | |
++ sort --unique | |
++ sed 's#\/$##' | |
++ LogLeave | |
++ [[ 0 == 0 ]] | |
++ Log 'Done.\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Done.\n ]] | |
++ local 'fmt=Done.\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mDone.\n[0m' :::: | |
[0K[1;34m:::: [1;39mDone. | |
[0m++ log_indent=::: | |
++ LogEnter 'Searching for stray files...\n' | |
++ Log 'Searching for stray files...\n' | |
++ [[ 1 != 0 ]] | |
++ [[ -n Searching for stray files...\n ]] | |
++ local 'fmt=Searching for stray files...\n' | |
++ shift | |
++ [[ -z [0K ]] | |
++ printf '[0K[1;34m%s [1;39mSearching for stray files...\n[0m' ::: | |
[0K[1;34m::: [1;39mSearching for stray files... | |
[0m++ log_indent=:::: | |
++ local line | |
++ local -Ag ignored_dirs | |
++ AconfNeedProgram gawk gawk n | |
++ local program=gawk | |
++ local package=gawk | |
++ local foreign=n | |
++ hash gawk | |
++ local progress_fd | |
++ exec | |
++ local stray_file_count=0 | |
++ read -r -d '' line | |
+++ read -r -d '' line | |
+++ gawk ' | |
BEGIN { | |
RS = "\0"; | |
t = systime(); | |
}; | |
{ | |
u = systime(); | |
if (t != u) { | |
t = u; | |
printf "%s\0", $0; | |
system(""); # https://unix.stackexchange.com/a/83853/4830 | |
} | |
}' | |
++ sudo find / -regextype posix-extended -not '(' '(' -regex '/dev|/home|/media|/mnt|/proc|/root|/run|/sys|/tmp|/var/cache' -o -false ')' -printf I -print0 -prune ')' -printf O -print0 | |
++ tee /dev/fd/10 | |
++ grep --null --null-data --invert-match --fixed-strings --line-regexp --file /dev/fd/63 | |
+++ sed -e 's#^#O#' | |
++ true | |
+++ OnError | |
+++ trap '' EXIT ERR | |
++++ Color R 'Fatal error' | |
++++ local var=ANSI_color_R | |
++++ printf -- %s '[1;31m' | |
++++ shift | |
++++ printf -- 'Fatal error' | |
++++ printf -- %s '[1;39m' | |
+++ LogEnter '%s! Stack trace:\n' '[1;31mFatal error[1;39m' | |
+++ Log '%s! Stack trace:\n' '[1;31mFatal error[1;39m' | |
+++ [[ 2 != 0 ]] | |
+++ [[ -n %s! Stack trace:\n ]] | |
+++ local 'fmt=%s! Stack trace:\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s! Stack trace:\n[0m' :::: '[1;31mFatal error[1;39m' | |
[0K[1;34m:::: [1;39m[1;31mFatal error[1;39m! Stack trace: | |
[0m+++ log_indent=::::: | |
+++ local frame=0 str | |
++++ caller 0 | |
+++ str='346 AconfCompileSystem /usr/lib/aconfmgr/common.bash' | |
+++ [[ 346 AconfCompileSystem /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/common.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/common.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 346 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 346 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfCompileSystem | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfCompileSystem | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m346[1;39m' '[1;33mAconfCompileSystem[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m346[1;39m' '[1;33mAconfCompileSystem[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/common.bash[1;39m:[1;32m346[1;39m [[1;33mAconfCompileSystem[1;39m] | |
[0m+++ frame=1 | |
++++ caller 1 | |
+++ str='900 AconfCompile /usr/lib/aconfmgr/common.bash' | |
+++ [[ 900 AconfCompile /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/common.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/common.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 900 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 900 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfCompile | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfCompile | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m900[1;39m' '[1;33mAconfCompile[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m900[1;39m' '[1;33mAconfCompile[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/common.bash[1;39m:[1;32m900[1;39m [[1;33mAconfCompile[1;39m] | |
[0m+++ frame=2 | |
++++ caller 2 | |
+++ str='9 AconfSave /usr/lib/aconfmgr/save.bash' | |
+++ [[ 9 AconfSave /usr/lib/aconfmgr/save.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/save.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/save.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 9 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 9 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfSave | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfSave | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/save.bash[1;39m' '[1;32m9[1;39m' '[1;33mAconfSave[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/save.bash[1;39m' '[1;32m9[1;39m' '[1;33mAconfSave[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/save.bash[1;39m:[1;32m9[1;39m [[1;33mAconfSave[1;39m] | |
[0m+++ frame=3 | |
++++ caller 3 | |
+++ str='185 Main /usr/lib/aconfmgr/main.bash' | |
+++ [[ 185 Main /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/main.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/main.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 185 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 185 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q Main | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q Main | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m185[1;39m' '[1;33mMain[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m185[1;39m' '[1;33mMain[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/main.bash[1;39m:[1;32m185[1;39m [[1;33mMain[1;39m] | |
[0m+++ frame=4 | |
++++ caller 4 | |
+++ str='205 source /usr/lib/aconfmgr/main.bash' | |
+++ [[ 205 source /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/main.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/main.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 205 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 205 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q source | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q source | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m205[1;39m' '[1;33msource[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m205[1;39m' '[1;33msource[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/main.bash[1;39m:[1;32m205[1;39m [[1;33msource[1;39m] | |
[0m+++ frame=5 | |
++++ caller 5 | |
+++ str='26 main /usr/bin/aconfmgr' | |
+++ [[ 26 main /usr/bin/aconfmgr =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/bin/aconfmgr | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/bin/aconfmgr | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 26 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 26 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q main | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q main | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/bin/aconfmgr[1;39m' '[1;32m26[1;39m' '[1;33mmain[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/bin/aconfmgr[1;39m' '[1;32m26[1;39m' '[1;33mmain[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/bin/aconfmgr[1;39m:[1;32m26[1;39m [[1;33mmain[1;39m] | |
[0m+++ frame=6 | |
++++ caller 6 | |
+++ str= | |
+++ LogLeave '' | |
+++ [[ 1 == 0 ]] | |
+++ Log '' | |
+++ [[ 1 != 0 ]] | |
+++ [[ -n '' ]] | |
+++ log_indent=:::: | |
+++ [[ -d /tmp/aconfmgr-g ]] | |
+++ local df dir | |
++++ stat -f '--format=%a*%S' /tmp/aconfmgr-g | |
+++ df=17796825088 | |
+++++ dirname /tmp/aconfmgr-g | |
++++ realpath /tmp | |
+++ dir=/tmp | |
+++ [[ 17796825088 -lt 1048576 ]] | |
+++ exit 1 | |
+++ OnError | |
+++ trap '' EXIT ERR | |
++++ Color R 'Fatal error' | |
++++ local var=ANSI_color_R | |
++++ printf -- %s '[1;31m' | |
++++ shift | |
++++ printf -- 'Fatal error' | |
++++ printf -- %s '[1;39m' | |
+++ LogEnter '%s! Stack trace:\n' '[1;31mFatal error[1;39m' | |
+++ Log '%s! Stack trace:\n' '[1;31mFatal error[1;39m' | |
+++ [[ 2 != 0 ]] | |
+++ [[ -n %s! Stack trace:\n ]] | |
+++ local 'fmt=%s! Stack trace:\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s! Stack trace:\n[0m' :::: '[1;31mFatal error[1;39m' | |
[0K[1;34m:::: [1;39m[1;31mFatal error[1;39m! Stack trace: | |
[0m+++ log_indent=::::: | |
+++ local frame=0 str | |
++++ caller 0 | |
+++ str='348 AconfCompileSystem /usr/lib/aconfmgr/common.bash' | |
+++ [[ 348 AconfCompileSystem /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/common.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/common.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 348 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 348 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfCompileSystem | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfCompileSystem | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m348[1;39m' '[1;33mAconfCompileSystem[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m348[1;39m' '[1;33mAconfCompileSystem[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/common.bash[1;39m:[1;32m348[1;39m [[1;33mAconfCompileSystem[1;39m] | |
[0m+++ frame=1 | |
++++ caller 1 | |
+++ str='900 AconfCompile /usr/lib/aconfmgr/common.bash' | |
+++ [[ 900 AconfCompile /usr/lib/aconfmgr/common.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/common.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/common.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 900 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 900 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfCompile | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfCompile | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m900[1;39m' '[1;33mAconfCompile[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/common.bash[1;39m' '[1;32m900[1;39m' '[1;33mAconfCompile[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/common.bash[1;39m:[1;32m900[1;39m [[1;33mAconfCompile[1;39m] | |
[0m+++ frame=2 | |
++++ caller 2 | |
+++ str='9 AconfSave /usr/lib/aconfmgr/save.bash' | |
+++ [[ 9 AconfSave /usr/lib/aconfmgr/save.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/save.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/save.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 9 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 9 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q AconfSave | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q AconfSave | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/save.bash[1;39m' '[1;32m9[1;39m' '[1;33mAconfSave[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/save.bash[1;39m' '[1;32m9[1;39m' '[1;33mAconfSave[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/save.bash[1;39m:[1;32m9[1;39m [[1;33mAconfSave[1;39m] | |
[0m+++ frame=3 | |
++++ caller 3 | |
+++ str='185 Main /usr/lib/aconfmgr/main.bash' | |
+++ [[ 185 Main /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/main.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/main.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 185 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 185 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q Main | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q Main | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m185[1;39m' '[1;33mMain[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m185[1;39m' '[1;33mMain[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/main.bash[1;39m:[1;32m185[1;39m [[1;33mMain[1;39m] | |
[0m+++ frame=4 | |
++++ caller 4 | |
+++ str='205 source /usr/lib/aconfmgr/main.bash' | |
+++ [[ 205 source /usr/lib/aconfmgr/main.bash =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/lib/aconfmgr/main.bash | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/lib/aconfmgr/main.bash | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 205 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 205 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q source | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q source | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m205[1;39m' '[1;33msource[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/lib/aconfmgr/main.bash[1;39m' '[1;32m205[1;39m' '[1;33msource[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/lib/aconfmgr/main.bash[1;39m:[1;32m205[1;39m [[1;33msource[1;39m] | |
[0m+++ frame=5 | |
++++ caller 5 | |
+++ str='26 main /usr/bin/aconfmgr' | |
+++ [[ 26 main /usr/bin/aconfmgr =~ ^([^ ]*) ([^ ]*) (.*)$ ]] | |
++++ Color C %q /usr/bin/aconfmgr | |
++++ local var=ANSI_color_C | |
++++ printf -- %s '[1;36m' | |
++++ shift | |
++++ printf -- %q /usr/bin/aconfmgr | |
++++ printf -- %s '[1;39m' | |
++++ Color G %q 26 | |
++++ local var=ANSI_color_G | |
++++ printf -- %s '[1;32m' | |
++++ shift | |
++++ printf -- %q 26 | |
++++ printf -- %s '[1;39m' | |
++++ Color Y %q main | |
++++ local var=ANSI_color_Y | |
++++ printf -- %s '[1;33m' | |
++++ shift | |
++++ printf -- %q main | |
++++ printf -- %s '[1;39m' | |
+++ Log '%s:%s [%s]\n' '[1;36m/usr/bin/aconfmgr[1;39m' '[1;32m26[1;39m' '[1;33mmain[1;39m' | |
+++ [[ 4 != 0 ]] | |
+++ [[ -n %s:%s [%s]\n ]] | |
+++ local 'fmt=%s:%s [%s]\n' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39m%s:%s [%s]\n[0m' ::::: '[1;36m/usr/bin/aconfmgr[1;39m' '[1;32m26[1;39m' '[1;33mmain[1;39m' | |
[0K[1;34m::::: [1;39m[1;36m/usr/bin/aconfmgr[1;39m:[1;32m26[1;39m [[1;33mmain[1;39m] | |
[0m+++ frame=6 | |
++++ caller 6 | |
+++ str= | |
+++ LogLeave '' | |
+++ [[ 1 == 0 ]] | |
+++ Log '' | |
+++ [[ 1 != 0 ]] | |
+++ [[ -n '' ]] | |
+++ log_indent=:::: | |
+++ [[ -d /tmp/aconfmgr-g ]] | |
+++ local df dir | |
++++ stat -f '--format=%a*%S' /tmp/aconfmgr-g | |
+++ df=17796825088 | |
+++++ dirname /tmp/aconfmgr-g | |
++++ realpath /tmp | |
+++ dir=/tmp | |
+++ [[ 17796825088 -lt 1048576 ]] | |
+++ exit 1 | |
+++ local path=/opt/ApacheDirectoryS | |
+++ path=/opt | |
+++ [[ 4 -gt 40 ]] | |
++++ Color M %q /opt | |
++++ local var=ANSI_color_M | |
++++ printf -- %s '[1;35m' | |
++++ shift | |
++++ printf -- %q /opt | |
++++ printf -- %s '[1;39m' | |
+++ Log 'Scanning %s...\r' '[1;35m/opt[1;39m' | |
+++ [[ 2 != 0 ]] | |
+++ [[ -n Scanning %s...\r ]] | |
+++ local 'fmt=Scanning %s...\r' | |
+++ shift | |
+++ [[ -z [0K ]] | |
+++ printf '[0K[1;34m%s [1;39mScanning %s...\r[0m' :::: '[1;35m/opt[1;39m' | |
[0K[1;34m:::: [1;39mScanning [1;35m/opt[1;39m... | |
[0m+++ read -r -d '' line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment