#!/bin/sh
set -e
debian_version="bookworm"
-legal_system_names="x220 w530"
+. ./misc.sh
-if [ "$#" -ne 1 ]; then
- echo 'Need exactly one argument (system name).'
- false
-fi
-found=0
-for system_name_i in $legal_system_names; do
- if [ "$1" = "$system_name_i" ]; then
- found=1
- system_name="${system_name_i}"
- continue
- fi
-done
-if [ "$found" = 0 ]; then
- echo "Need legal system name."
- false
-fi
-system_name="$1"
+expect_n_args 1 "(system name)" "$@"
+get_system_name_arg "$1"
-# config_tree_prefix="${public_repos_dir}/config/${debian_version}"
git clone https://plomlompom.com/repos/clone/config
+cd $setup_scripts_dir
./copy_dirtree.sh "${config_tree_prefix}/home_files" "${HOME}" minimal user "${system_name}"
# public_repos_dir="${HOME}/public_repos"