Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

some awk versions demand more quoting then others

  • Loading branch information...
commit c7aad3053548f21ba2d1a7b17ca2ae4c45ebbc23 1 parent 2da26c7
@wsnipex wsnipex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  build-xbmc-addons.sh
View
2  build-xbmc-addons.sh
@@ -197,7 +197,7 @@ function getPackageDetails {
PACKAGEVERSION=$(awk -F'=' '!/<?xml/ && /version/ && !/>/ {gsub("\"",""); VER=$2} END {print VER}' ${addon}-${BRANCH}/${addon:0:5}*/addon.xml)
else
# try CmakeLists as a final effort
- PACKAGEVERSION=$(awk '/SET\(.*_VERSION/ {gsub(")",""); VER=VER"."$2 } END {print substr(VER,2)}' ${addon}-${BRANCH}/CMakeLists.txt)
+ PACKAGEVERSION=$(awk '/SET\(.*_VERSION/ {gsub("\)",""); VER=VER"."$2 } END {print substr(VER,2)}' ${addon}-${BRANCH}/CMakeLists.txt)
fi
[[ -z $PACKAGEVERSION ]] && echo "ERROR: could not determine version of $addon" && break
Please sign in to comment.
Something went wrong with that request. Please try again.