fix docs compile targets
[openwrt.git] / package / base-files / files / bin / uci
index 4df8f33..f89fe82 100755 (executable)
@@ -86,7 +86,7 @@ do_remove() {
 do_commit() {
        local PACKAGE="$1"
        for package in ${PACKAGE:-$(cd /tmp/.uci; ls)}; do 
-               [ "${package##.*}" != "$package" ] && continue # ignore .lock files
+               [ lock = "${package##*.}" ] && continue # ignore .lock files
                uci_commit "$package"
        done
 }
@@ -106,7 +106,7 @@ do_show() {
                SECTION=""
        
                config_cb() {
-                       if [ -z "$CONFIG" -o "$CONFIG" = "$2" ]; then
+                       if [ -z "$CONFIG" -o ."$CONFIG" = ."$2" ]; then
                                append SECTION "$2"
                                option_cb() {
                                        append "${CONFIG_SECTION}_VARS" "$1"
This page took 0.023408 seconds and 4 git commands to generate.