From 1114e664f49b80fc1f9123c88a341d6749f16500 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 8 Aug 2026 13:08:16 +0400 Subject: [PATCH] quick fix --- bin/miaou-bash | 1 - lib/init.bash | 3 +++ lib/self-upgrade.bash | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/miaou-bash b/bin/miaou-bash index 3a6d57e..186f1fe 100755 --- a/bin/miaou-bash +++ b/bin/miaou-bash @@ -273,7 +273,6 @@ function uninstall { } function populate_error_arrays { - local source=$1 line=$2 payload=$3 unset 'error_source[0]' 'error_lineno[0]' 'error_funcname[0]' unset 'error_source[-1]' 'error_lineno[-1]' 'error_funcname[-1]' diff --git a/lib/init.bash b/lib/init.bash index 36b99db..aa6bba1 100755 --- a/lib/init.bash +++ b/lib/init.bash @@ -29,10 +29,12 @@ function no_more_skeleton { } function link_etc { + echo 1 local filename="$1" subfolder="${2:-}" local link_name="$filename" [[ -v LINK_NAME ]] && link_name="$LINK_NAME" + echo 2 local source="$MIAOU_BASH_DIR/etc" local destination="/etc" [[ -n "$subfolder" ]] && source+="/${subfolder}" && destination+="/${subfolder}" @@ -49,6 +51,7 @@ function link_etc { ln -s "$source/$filename" "$destination/$link_name" echo "link $source/$link_name created" fi + echo 3 } function link_config_files { diff --git a/lib/self-upgrade.bash b/lib/self-upgrade.bash index a9f1c0f..bba2dc5 100755 --- a/lib/self-upgrade.bash +++ b/lib/self-upgrade.bash @@ -16,7 +16,6 @@ function bootstrap { if ! cmp -s "$source_bin" "$dest_bin"; then cp -f "$source_bin" "$dest_bin" fi - cd - || exit 3 echo "miaou-bash refreshed from: $MIAOU_BASH_DIR" } # MAIN @@ -30,6 +29,7 @@ if [[ "$current" == "$latest" ]]; then else # TODO: prevent refresh from development purpose rm -rf "$MIAOU_BASH_DIR" + echo BEFORE bootstrap bootstrap echo BEFORE init