Commit 239beda7 authored by Fission Xuiptz's avatar Fission Xuiptz Committed by Bruno Pinto

Fixed condition check on item existence in list

Previously, 'set $path...' ran regardless of the result of 'and not contains...'. This fixes _append_path to actually use the result of the condition check.
parent 8e6adf25
...@@ -7,7 +7,9 @@ function _append_path ...@@ -7,7 +7,9 @@ function _append_path
set path $argv[2] set path $argv[2]
end end
if test -d $argv[1]; and not contains $argv[1] $$path if test -d $argv[1]
if not contains $argv[1] $$path
set $path $argv[1] $$path set $path $argv[1] $$path
end end
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment