Commit f57ef1b4 authored by Bruno Pinto's avatar Bruno Pinto

Suppress basename usage output

When using basename without any arguments, a usage helper as following
is displayed:

```
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
```

When listing the installed packages, if no theme was installed (e.g.
first installation), the `themes/` folder are empty and the usage helper
is displayed. This change addresses it by suppressing the message.
parent 1fbc29d1
...@@ -55,7 +55,7 @@ function __omf.packages.list.installed -a type ...@@ -55,7 +55,7 @@ function __omf.packages.list.installed -a type
contains $package (__omf.packages.builtin); or set list $list $package contains $package (__omf.packages.builtin); or set list $list $package
end end
test "$type" = "--plugin"; or for package in (basename -a {$OMF_CONFIG,$OMF_PATH}/themes/*) test "$type" = "--plugin"; or for package in (basename -a {$OMF_CONFIG,$OMF_PATH}/themes/* 2>/dev/null)
set list $list $package set list $list $package
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