simplify a return value

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 20a24d43ab
commit 1b13caac7d
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -335,8 +335,7 @@ compile() {
_arduino_prop() { _arduino_prop() {
pref=$1 pref=$1
# Strip the preference name. And then strip leading and trailing quotations # Strip the preference name. And then strip leading and trailing quotations
MESSAGE=$(_arduino_props | grep --max-count=1 "${pref}=" | sed -e s/^.*"${pref}"=// -e 's/^"//' -e 's/"$//') _arduino_props | grep --max-count=1 "${pref}=" | sed -e s/^.*"${pref}"=// -e 's/^"//' -e 's/"$//'
echo "$MESSAGE"
} }
_arduino_props() { _arduino_props() {

Loading…
Cancel
Save