aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-17 17:21:16 -0300
committerEuAndreh <eu@euandre.org>2023-02-17 17:21:16 -0300
commit80131986ac0580ee5223f81b44bf7d2169db1428 (patch)
tree61a9d8598673f8bed9cbccfc62b7aa014e1d98f0
parentbin/upgrade: Do some ugly ifs to decide what to upgrade (diff)
downloaddotfiles-80131986ac0580ee5223f81b44bf7d2169db1428.tar.gz
dotfiles-80131986ac0580ee5223f81b44bf7d2169db1428.tar.xz
bin/upgrade: Explicitly define $HOSTNAME
-rwxr-xr-xbin/upgrade4
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