home · contact · privacy
Fix read missing argument bug.
[config] / bookworm / setup_scripts / setup_home.sh
index 55707fd31c36456c3c4e6965981c3b98edb9566b..6467ef9a166a5419cc110c2ea6d4084f919eb3dd 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-set -x
+. ./misc.sh
 
 expect_n_args 1 "(system name)" "$@"
 get_system_name_arg "$1"
@@ -56,6 +56,10 @@ cat "${repos_list_file}" | while read line; do
     fi
 done
 
+# Remove redundant config repo copy.
+config_tree_prefix="${public_repos_dir}/config/${debian_version}"
+rm -rf ~/config
+
 # # Set up native messenger for tridactyl.
 # version='ef9f02d0da258f68d7faf8898707f6d83d90d07a'
 # curl -fsSl "https://raw.githubusercontent.com/tridactyl/tridactyl/${version}/native/install.sh" | bash
@@ -90,8 +94,6 @@ if [ -f "${authinfo_file}" ]; then
 fi
 cd
 
-# rm -rf "${dir_secrets}"
-
 maildir=~/mail/maildir
 # # Set up e-mail system. Note that we only do mbsync if the imap pass file
 # # is found. It may not be present on every secrets drive yet, so we have to