From 80131986ac0580ee5223f81b44bf7d2169db1428 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 17 Feb 2023 17:21:16 -0300 Subject: bin/upgrade: Explicitly define $HOSTNAME --- bin/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/upgrade b/bin/upgrade index 51c30c2..ba4fcc8 100755 --- a/bin/upgrade +++ b/bin/upgrade @@ -62,8 +62,10 @@ done shift $((OPTIND - 1)) +HOSTNAME="$(hostname)" + if [ -e /run/current-system/configuration.scm ]; then - pass show "$HOSTNAME"/andreh | + pass show "$(hostname)"/andreh | head -n1 | sudo -ES guix system -v3 reconfigure /run/current-system/configuration.scm fi -- cgit v1.2.3