quick fix

This commit is contained in:
pvincent
2026-08-08 13:08:16 +04:00
parent bc1eff62b2
commit 1114e664f4
3 changed files with 4 additions and 2 deletions
-1
View File
@@ -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]'
+3
View File
@@ -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 {
+1 -1
View File
@@ -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