summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-02 14:08:33 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-02 14:08:33 +0100
commitcb33eff7e945251ec772cd95175cf18ef0c5176d (patch)
treeff79a2bd0f154d591e74d2e622a7103639682706 /scripts
parentpkgs/fish-mk-maps: Commit the program used to convert the `binds` to nix attrs (diff)
downloadnixos-config-cb33eff7e945251ec772cd95175cf18ef0c5176d.zip
scripts/build.sh: Set hosts, if they are unset
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 9cc4e46b..2bbb00f1 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -60,6 +60,11 @@ while [ "$#" -ne 0 ]; do
shift 1
done
+if [ "$#" -eq 0 ]; then
+ # shellcheck disable=SC2046
+ set -- $(ls "$root/hosts/by-name")
+fi
+
if [ "$use_dirty" = "false" ]; then
tmp="$(mktemp -d -t "server_build_script_XXXXX")"
trap 'rm -r "$tmp"' EXIT