From a00571bcd6e6021d71ad7b9002c87bfe392f7853 Mon Sep 17 00:00:00 2001 From: Marley Date: Mon, 22 Jan 2024 19:35:41 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20gitconfig=20not=20being=20?= =?UTF-8?q?linked?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/dot.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/script/dot.sh b/script/dot.sh index 357ee16..4c77327 100755 --- a/script/dot.sh +++ b/script/dot.sh @@ -228,7 +228,7 @@ install_dotfiles() local backup_all=false local skip_all=false - for src in $(find -H "$dotfiles_dir" -maxdepth 2 -name "*.symlink" -not -path "*.git*"); do + for src in $(find -H "$dotfiles_dir" -maxdepth 2 -name "*.symlink" -not -path ".git"); do dst="$HOME/$(basename "${src%.*}")" link_file "$src" "$dst" done @@ -268,6 +268,7 @@ restart_os() printf "\n" if answer_is_yes; then + ask_for_sudo sudo shutdown -r now &> /dev/null fi } @@ -298,10 +299,6 @@ main() # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ask_for_sudo - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Check if this script was run directly, and if not, dotfiles will need to be # downloaded.