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.