From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 3 Mar 2025 23:25:22 +0000 (+0100)
Subject: Minor fixes.
X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/booking/%7B%7Bprefix%7D%7D/static/process?a=commitdiff_plain;h=5946fc561cfc2df461bad953944d8ff7b7529547;p=config

Minor fixes.
---

diff --git a/testing/scripts/misc.sh b/testing/scripts/misc.sh
index cbf0c5c..7520e9d 100644
--- a/testing/scripts/misc.sh
+++ b/testing/scripts/misc.sh
@@ -4,12 +4,8 @@ set -e
 . ../../constants.sh
 . "${PATH_MANY_MISC}"
 
-repo_path="${HOME}/public_repos/${PATH_REL_REPO}"
-if [ ! -d "${repo_path}" ]; then
-    repo_path="${HOME}/${PATH_REL_REPO}"
-fi
-config_tree_prefix="${repo_path}/testing"
-setup_scripts_dir="${config_tree_prefix}/scripts"
+PATH_REL_SECRETS=to_usb
+PATH_SECRETS=${PATH_USER_HOME}/${PATH_REL_SECRETS}
 
 get_system_name_arg() {
     thinkpad_names="x220 w530 t490s"
diff --git a/testing/scripts/setup_secrets_root.sh b/testing/scripts/setup_secrets_root.sh
index 1171043..a0dd144 100755
--- a/testing/scripts/setup_secrets_root.sh
+++ b/testing/scripts/setup_secrets_root.sh
@@ -5,8 +5,6 @@ set -e
 abort_if_not_user root
 
 # Mount secrets device and copy over its content.
-PATH_REL_SECRETS=to_usb
-PATH_SECRETS=${PATH_USER_HOME}/${PATH_REL_SECRETS}
 abort_if_exists "${PATH_SECRETS}"
 expect_min_n_args 1 "(device name)" "$@"
 SECRETS_DEV=$1
diff --git a/testing/scripts/setup_secrets_user.sh b/testing/scripts/setup_secrets_user.sh
index 76e7e83..c5552df 100755
--- a/testing/scripts/setup_secrets_user.sh
+++ b/testing/scripts/setup_secrets_user.sh
@@ -2,7 +2,7 @@
 set -e
 . ./misc.sh
 
-abort_if_not_user "${USERNAME}" 
+abort_if_not_user "${USERNAME}"
 abort_if_exists "${PATH_USER_SSH}"
 PATH_REPOS="${HOME}/repos"
 abort_if_exists "${PATH_REPOS}"