fix unfinalized install
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
+3
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user