Browse Source

quick fix

main
pvincent 2 days ago
parent
commit
1114e664f4
  1. 1
      bin/miaou-bash
  2. 3
      lib/init.bash
  3. 2
      lib/self-upgrade.bash

1
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]'

3
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 {

2
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

Loading…
Cancel
Save