Browse Source

fix unfinalized install

main
pvincent 5 days ago
parent
commit
4d69814954
  1. 2
      install.sh
  2. 6
      lib/init.bash

2
install.sh

@ -32,7 +32,7 @@ set -Eeuo pipefail
! assert_supported_distro && echo 'unsupported distro: debian-like OR arch-like expected' && exit 2 ! assert_supported_distro && echo 'unsupported distro: debian-like OR arch-like expected' && exit 2
export MIAOU_BASH_DIR export MIAOU_BASH_DIR
if [[ -d "$MIAOU_BASH_DIR" ]]; then
if [[ -L /etc/inputrc && "$(readlink /etc/inputrc)" == "$MIAOU_BASH_DIR"/etc/inputrc ]]; then
miaou-bash "$MIAOU_BASH_DIR/lib/self-upgrade.bash" miaou-bash "$MIAOU_BASH_DIR/lib/self-upgrade.bash"
else else
bootstrap bootstrap

6
lib/init.bash

@ -52,8 +52,6 @@ function link_etc {
} }
function link_config_files { function link_config_files {
link_etc bash.bashrc
link_etc inputrc
if [[ "$DISTRO_LIKE" == 'arch' ]]; then if [[ "$DISTRO_LIKE" == 'arch' ]]; then
mkdir -p /etc/vim mkdir -p /etc/vim
@ -78,6 +76,8 @@ EOF
else else
link_etc vimrc.local vim link_etc vimrc.local vim
fi fi
link_etc bash.bashrc
link_etc inputrc # last command required to detect successful installation
} }
function in_azerty_zone { function in_azerty_zone {
@ -105,5 +105,5 @@ DISTRO_LIKE=$(fetch_distro_like)
required_packages required_packages
no_more_skeleton no_more_skeleton
link_config_files
fix_terminfo_ghostty fix_terminfo_ghostty
link_config_files
Loading…
Cancel
Save