Skip to content

Commit 00c5b8c

Browse files
authored
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.
1 parent 46abfae commit 00c5b8c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

open-in-idx-template/idx-template.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
1717
# Create a secrets.properties file in the repo
1818
touch $WS_NAME/secrets.properties
19-
20-
# Create a secrets.properties variable for each key type in the
21-
local.defaults.properties file
19+
20+
# Create a secrets.properties variable for each key type in local.defaults.properties
2221
2322
while IFS= read -r line || [[ -n "$line" ]]; do
2423
# Check that an "=" exists in the line
@@ -35,4 +34,4 @@
3534
3635
mv "$WS_NAME" "$out"
3736
'';
38-
}
37+
}

0 commit comments

Comments
 (0)