From 4d69814954593dbac3b2e892e18451ccf320f8db Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 10 Aug 2026 12:39:37 +0400 Subject: [PATCH] fix unfinalized install --- install.sh | 2 +- lib/init.bash | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 9cf4458..fc9bce9 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ set -Eeuo pipefail ! assert_supported_distro && echo 'unsupported distro: debian-like OR arch-like expected' && exit 2 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" else bootstrap diff --git a/lib/init.bash b/lib/init.bash index 1387d40..dbfe6ca 100755 --- a/lib/init.bash +++ b/lib/init.bash @@ -52,8 +52,6 @@ function link_etc { } function link_config_files { - link_etc bash.bashrc - link_etc inputrc if [[ "$DISTRO_LIKE" == 'arch' ]]; then mkdir -p /etc/vim @@ -78,6 +76,8 @@ EOF else link_etc vimrc.local vim fi + link_etc bash.bashrc + link_etc inputrc # last command required to detect successful installation } function in_azerty_zone { @@ -105,5 +105,5 @@ DISTRO_LIKE=$(fetch_distro_like) required_packages no_more_skeleton -link_config_files fix_terminfo_ghostty +link_config_files