lib/openwrt-models: work around empty lines
This commit is contained in:
parent
6f3ae90931
commit
b5334a0859
|
@ -28,8 +28,14 @@ let
|
||||||
builtins.filter (word:
|
builtins.filter (word:
|
||||||
word != [] && word != ""
|
word != [] && word != ""
|
||||||
) tokens;
|
) tokens;
|
||||||
command = builtins.head words;
|
command =
|
||||||
args = builtins.tail words;
|
if words != []
|
||||||
|
then builtins.head words
|
||||||
|
else "-";
|
||||||
|
args =
|
||||||
|
if words != []
|
||||||
|
then builtins.tail words
|
||||||
|
else [];
|
||||||
|
|
||||||
makeLinkFromArg = port: arg:
|
makeLinkFromArg = port: arg:
|
||||||
builtins.foldl' (result: interface:
|
builtins.foldl' (result: interface:
|
||||||
|
|
Loading…
Reference in New Issue