Обновить install.sh

исправления пути копирования конфига пользователю
This commit is contained in:
Алексей Владимирович 2026-06-10 08:44:44 +00:00
parent 50b5727d87
commit 1badb8354e

View file

@ -7,7 +7,7 @@ BASH_SRC="$REPO_DIR/.bashrc"
install_user() { install_user() {
local target="$1" local target="$1"
if [ -z "$target" ]; then if [ -z "$target" ]; then
target="$HOME" target="~"
fi fi
if [ -f "$target/.bashrc" ] && [ ! -f "$target/.bashrc.bak" ]; then if [ -f "$target/.bashrc" ] && [ ! -f "$target/.bashrc.bak" ]; then
cp "$target/.bashrc" "$target/.bashrc.bak" cp "$target/.bashrc" "$target/.bashrc.bak"