diff --git a/functions.sh b/functions.sh index 2029bb3..5ebd334 100644 --- a/functions.sh +++ b/functions.sh @@ -64,7 +64,11 @@ function install_package_now() { test -z ${1:-} || $pkgins $1 } alias install_packages_now=install_package_now -trap install_package_now ${pkgs:-} EXIT + +function install_deferred_packages() { + install_package_now ${pkgs:-} +} +trap install_deferred_packages EXIT # install_package installs a package using the right package manager for the # current system. diff --git a/run_once_generate_ssh_key.sh b/run_once_generate_ssh_key.sh index 082daab..233a8e1 100644 --- a/run_once_generate_ssh_key.sh +++ b/run_once_generate_ssh_key.sh @@ -6,6 +6,7 @@ test -z ${DEBUG:-} || set -x # This script generates an SSH key for the user if needed, then puts it in # GitHub and sets up gh to use it if needed. +echo "Setting up SSH key for GitHub..." cdn="https://raw.githubusercontent.com/glacials/dotfiles/main" f="functions.sh" d="$(dirname $0)"