From a57f5e6e4b655abf21430053db013d9a646b5bf8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 6 Jun 2021 18:46:06 +0200 Subject: rebuild-machines: cleanup script --- system-profiles/rebuild-machines/rebuild-machine.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'system-profiles/rebuild-machines/rebuild-machine.zsh') diff --git a/system-profiles/rebuild-machines/rebuild-machine.zsh b/system-profiles/rebuild-machines/rebuild-machine.zsh index 80cc7a2f..59df8999 100644 --- a/system-profiles/rebuild-machines/rebuild-machine.zsh +++ b/system-profiles/rebuild-machines/rebuild-machine.zsh @@ -1,9 +1,7 @@ -#!@zsh@/bin/zsh - -set -o errexit +#!@zsh@/bin/zsh -e if [[ $(whoami) != "root" ]]; then exec sudo -H -- $0 $@ fi -exec nixos-rebuild --refresh --flake 'git+ssh://machines/nixos?ref=flakes#@hostName@' ${@:-switch} +exec -- nixos-rebuild --refresh --flake 'git+ssh://machines/nixos?ref=flakes#@hostName@' ${@:-switch} -- cgit v1.2.3