diff --git a/dotfiles.sh b/dotfiles.sh index 2128125..845409c 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -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' diff --git a/src/dotfiles.sh b/src/dotfiles.sh index a1c178c..239f05b 100644 --- a/src/dotfiles.sh +++ b/src/dotfiles.sh @@ -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