Skip to content

Commit ba9335d

Browse files
committed
restore discovery logic
1 parent c098423 commit ba9335d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl CommandDiscovery {
126126
let mut paths: Vec<PathBuf> = vec![];
127127

128128
let dsc_resource_path = env::var_os("DSC_RESOURCE_PATH");
129-
if resource_path_setting.allow_env_override {
129+
if resource_path_setting.allow_env_override && dsc_resource_path.is_some() {
130130
if let Some(value) = dsc_resource_path {
131131
debug!("DSC_RESOURCE_PATH: {:?}", value.to_string_lossy());
132132
using_custom_path = true;

0 commit comments

Comments
 (0)