ltq-dsl-base: remove useless echos in lantiq_dsl.sh
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:23:37 +0000 (23:23 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 17 Aug 2020 21:25:41 +0000 (23:25 +0200)
The is no reason to catch the output by $() and then echo it again.

Remove the useless echos.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/utils/ltq-dsl-base/Makefile
package/network/utils/ltq-dsl-base/files/lib/functions/lantiq_dsl.sh

index 6b931f7abd07ce16f6b15787031a4bdc9dddfe56..e2cfc4004caf61cdbc2316444c3946e08dff38ac 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ltq-dsl-base
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 include $(INCLUDE_DIR)/package.mk
 
index 11b02fc4aa397f368b38182d737dc6686bdeb8de..5842a7879f449aed24a248e050b73e6d707d88c3 100755 (executable)
@@ -19,10 +19,10 @@ dsl_cmd() {
        )
 }
 dsl_val() {
-       echo $(expr "$1" : '.*'$2'=\([-\.[:alnum:]]*\).*')
+       expr "$1" : '.*'$2'=\([-\.[:alnum:]]*\).*'
 }
 dsl_string() {
-       echo $(expr "$1" : '.*'$2'=(\([A-Z0-9,]*\))')
+       expr "$1" : '.*'$2'=(\([A-Z0-9,]*\))'
 }
 
 #