We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 302f0f8 + ef508ea commit 1c19dcbCopy full SHA for 1c19dcb
capt/Taskfile.yaml
@@ -88,6 +88,8 @@ tasks:
88
- .state
89
cmds:
90
- ./scripts/generate_state.sh config.yaml .state
91
+ status:
92
+ - if [[ -n "$(yq '.os.sshKey' {{.STATE_FILE_FQ_PATH}})" ]]; then true; else false; fi
93
94
next-steps:
95
silent: true
capt/scripts/generate_state.sh
@@ -143,6 +143,7 @@ function main() {
143
# if the sshKey is not set, generate a default one
144
ssh_key=$(yq eval '.os.sshKey' "$config_file")
145
if [[ -z $ssh_key ]]; then
146
+ mkdir -p "$output_dir"
147
rm -rf "$output_dir"/capt-ssh-key* >>"$output_dir"/error.log 2>&1
148
ssh-keygen -t ed25519 -f "$output_dir"/capt-ssh-key -N "" -C "capt-playground" >>"$output_dir"/error.log 2>&1
149
if [[ $? -ne 0 ]]; then
0 commit comments