diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-17 23:40:51 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-17 23:40:51 +0000 |
commit | d0cbcfa45826b96d36522b8055ce0ba994a0879d (patch) | |
tree | ae12196c90b2d946fababadf9c9b7dfa454bc15c /libs/uvl/root/usr | |
parent | 6d5efc7925f8abf7ab64ad76b0a70ddfb8d21a93 (diff) |
* luci/libs: further fixes in uvl cli and library
Diffstat (limited to 'libs/uvl/root/usr')
-rwxr-xr-x | libs/uvl/root/usr/bin/uvl | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |