File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def "open db" [] {
4848 } else {
4949 # Open the db
5050 let dec = mktemp - p ~/.envr ;
51- let priv_key = ((envr config show ).priv_key | path expand );
51+ let priv_key = ((envr config show ).keys.0.private | path expand );
5252 age - d - i $priv_key ($db_path | path expand ) | save - f $dec
5353 stor import - f $dec
5454 rm $dec
@@ -68,7 +68,7 @@ def "create-db" []: nothing -> any {
6868 , contents text not null
6969 );'
7070
71- let pub_key = ((envr config show ).pub_key | path expand );
71+ let pub_key = ((envr config show ).keys.0.public | path expand );
7272 age - R $pub_key $dec | save - f $db_path
7373
7474 stor import - f $dec
@@ -81,7 +81,7 @@ def "close db" [] {
8181 stor export -- file-name $dec ;
8282
8383 # Encrypt the file
84- let pub_key = ((envr config show ).pub_key | path expand );
84+ let pub_key = ((envr config show ).keys.0.public | path expand );
8585 age - R $pub_key $dec | save - f $db_path
8686
8787 rm $dec
You can’t perform that action at this time.
0 commit comments