Commit eb6e2b0 1 parent 7024015 commit eb6e2b0 Copy full SHA for eb6e2b0
File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -156,16 +156,23 @@ pub fn mavlink_connection_string() -> String {
156
156
}
157
157
158
158
pub fn log_path ( ) -> String {
159
- MANAGER
160
- . clap_matches
161
- . log_path
162
- . clone ( )
163
- . expect ( "Clap arg \" log-path\" should always be \" Some(_)\" because of the default value." )
159
+ let log_path =
160
+ MANAGER . clap_matches . log_path . clone ( ) . expect (
161
+ "Clap arg \" log-path\" should always be \" Some(_)\" because of the default value." ,
162
+ ) ;
163
+
164
+ shellexpand:: full ( & log_path)
165
+ . expect ( "Failed to expand path" )
166
+ . to_string ( )
164
167
}
165
168
166
169
// Return the desired settings file
167
170
pub fn settings_file ( ) -> String {
168
- MANAGER . clap_matches . settings_file . clone ( )
171
+ let settings_file = MANAGER . clap_matches . settings_file . clone ( ) ;
172
+
173
+ shellexpand:: full ( & settings_file)
174
+ . expect ( "Failed to expand path" )
175
+ . to_string ( )
169
176
}
170
177
171
178
// Return the desired address for the REST API
You can’t perform that action at this time.
0 commit comments