From d5a161318b928ccefda3fe1b208dee2819a824c8 Mon Sep 17 00:00:00 2001 From: AngeD Date: Thu, 9 Nov 2023 15:45:54 +0100 Subject: [PATCH] fix: dotfiles path --- dotfiles.sh | 2 +- src/dotfiles.sh | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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