From 24e73273fd4ddbf6afcedc1942e641f3f256ee6e Mon Sep 17 00:00:00 2001 From: glacials Date: Mon, 6 Mar 2023 05:33:56 +0100 Subject: [PATCH] work --- functions.sh | 6 +++++- run_once_generate_ssh_key.sh | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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)" -- knotmirror 0.0.1