Skip to content

Commit bc1e68c

Browse files
authored
unset SHARUN_EXTRA_LIBRARY_PATH SHARUN_FALLBACK_LIBRARY_PATH (#81)
1 parent 51b9d74 commit bc1e68c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ fn main() {
939939
let extra_library_path = get_env_var("SHARUN_EXTRA_LIBRARY_PATH");
940940
if !extra_library_path.is_empty() {
941941
library_path = format!("{}:{}", extra_library_path, library_path);
942+
env::remove_var("SHARUN_EXTRA_LIBRARY_PATH");
942943
}
943944

944945
library_path += ":/usr/lib:/lib";
@@ -957,6 +958,7 @@ fn main() {
957958
let fallback_library_path = get_env_var("SHARUN_FALLBACK_LIBRARY_PATH");
958959
if !fallback_library_path.is_empty() {
959960
library_path = format!("{}:{}", library_path, fallback_library_path);
961+
env::remove_var("SHARUN_FALLBACK_LIBRARY_PATH");
960962
}
961963

962964
for var_name in unset_envs {

0 commit comments

Comments
 (0)