Fix small issues

This commit is contained in:
${GIT_USER}
2025-08-27 14:44:46 +02:00
parent 3071595a13
commit 366896a13e
3 changed files with 10 additions and 10 deletions

View File

@@ -6,13 +6,15 @@ install_dotfile_ifnot() {
}
echo "Installing dotfiles..."
# cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
sudo -u ${USERNAME} mkdir -p /home/${USERNAME}/.config/git
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
chown ${USERNAME}:${USERNAME} /home/${USERNAME}/.config/git/config
# Install bashrc if not mymachine-installed
if ! [[ "$(head -n 1 /home/${USERNAME}/.bashrc)" = "# mymachine" ]]; then
sudo -u ${USERNAME} cp "${script_dir}/dotfiles/.bashrc" "/home/${USERNAME}/.bashrc"
fi
install_dotfile_ifnot .config/prompt.sh
# Install code settings depending on which code is installed
CODE_NAME="Code - OSS"