diff options
author | EuAndreh <eu@euandre.org> | 2023-02-17 17:21:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-17 17:21:16 -0300 |
commit | 80131986ac0580ee5223f81b44bf7d2169db1428 (patch) | |
tree | 61a9d8598673f8bed9cbccfc62b7aa014e1d98f0 | |
parent | bin/upgrade: Do some ugly ifs to decide what to upgrade (diff) | |
download | dotfiles-80131986ac0580ee5223f81b44bf7d2169db1428.tar.gz dotfiles-80131986ac0580ee5223f81b44bf7d2169db1428.tar.xz |
bin/upgrade: Explicitly define $HOSTNAME
-rwxr-xr-x | bin/upgrade | 4 |
1 files changed, 3 insertions, 1 deletions
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 |