fix: dotfiles path
This commit is contained in:
parent
62f2d170b0
commit
d5a161318b
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user