Skip to content

Commit

Permalink
Cean sandbox (#1815)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
cemanzano authored Sep 20, 2024
1 parent 46abfae commit 00c5b8c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions open-in-idx-template/idx-template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,4 +34,4 @@
mv "$WS_NAME" "$out"
'';
}
}

0 comments on commit 00c5b8c

Please sign in to comment.