fix: dotfiles path

This commit is contained in:
AngeD 2023-11-09 15:45:54 +01:00
parent 62f2d170b0
commit d5a161318b
2 changed files with 2 additions and 6 deletions

View File

@ -2,4 +2,4 @@
cd "$(dirname "$0")"
. ./config
cat src/dotfiles.sh | arch-chroot /mnt/ su "$username" -c bash -ex
cat src/dotfiles.sh | arch-chroot /mnt/ su "$username" -c 'bash -ex'

View File

@ -1,13 +1,9 @@
#!/bin/bash -ex
cd
config=(git --git-dir "$HOME/.dotfiles" --work-tree "$HOME")
repo='https://git.maby.dev/ange/.dotfiles.git'
if [ "$EUID" = 0 ]; then
echo 'You are currently logged in as root. Continue?'
read -r
fi
git clone --bare "$repo" "$HOME/.dotfiles"
"${config[@]}" checkout -f