Permalink
Browse files

some awk versions demand more quoting then others

  • Loading branch information...
1 parent 2da26c7 commit c7aad3053548f21ba2d1a7b17ca2ae4c45ebbc23 @wsnipex wsnipex committed Aug 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 build-xbmc-addons.sh
View
@@ -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

0 comments on commit c7aad30

Please sign in to comment.