X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fuvl%2Froot%2Fusr%2Fbin%2Fuvl;h=3f179ee6a70a93bc771dcc0c73273e7d82fc98b2;hb=d0cbcfa45826b96d36522b8055ce0ba994a0879d;hp=9fe34127f4cedb69f627433e987955a481797138;hpb=6d5efc7925f8abf7ab64ad76b0a70ddfb8d21a93;p=project%2Fluci.git diff --git a/libs/uvl/root/usr/bin/uvl b/libs/uvl/root/usr/bin/uvl index 9fe34127f..3f179ee6a 100755 --- a/libs/uvl/root/usr/bin/uvl +++ b/libs/uvl/root/usr/bin/uvl @@ -103,17 +103,17 @@ else local uvl = luci.uvl.UVL( type(options.schemedir) == "string" and options.schemedir or nil ) - + local cso = luci.util.split( arguments[1], "." ) local ok, err = uvl:validate( unpack(cso) ) if ok then if not options.silent then print( string.format( - '%s "%s.%s.%s" validates fine!', + '%s "%s" validates fine!', ( #cso == 1 and "Config" or ( #cso == 2 and "Section" or "Option" ) ), - cso[1], cso[2], cso[3] + table.concat(cso, ".") ) ) end os.exit( 0 )