From 00c5b8c0e0e767773fb7991e2080bd5bc7007645 Mon Sep 17 00:00:00 2001 From: cemanzano Date: Fri, 20 Sep 2024 15:33:39 -0700 Subject: [PATCH] Cean sandbox (#1815) * Add dynamic key values to secrets.properties in idx template Update idx template to read local.defaults.properties and generate key entries in secrets.properties file using the user's provided API key. * Fix incorrect variable for key Update key to be keyVar when writing to secrets.properties * fix: remove newline from comment Comment contained newline that made the template read the filename as a command. --- open-in-idx-template/idx-template.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/open-in-idx-template/idx-template.nix b/open-in-idx-template/idx-template.nix index c9e17d1f4..175388779 100644 --- a/open-in-idx-template/idx-template.nix +++ b/open-in-idx-template/idx-template.nix @@ -16,9 +16,8 @@ # Create a secrets.properties file in the repo touch $WS_NAME/secrets.properties - - # Create a secrets.properties variable for each key type in the - local.defaults.properties file + + # Create a secrets.properties variable for each key type in local.defaults.properties while IFS= read -r line || [[ -n "$line" ]]; do # Check that an "=" exists in the line @@ -35,4 +34,4 @@ mv "$WS_NAME" "$out" ''; -} \ No newline at end of file +}