aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-05 01:02:18 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-05 01:02:18 +0000
commit0866034c27d9e8451769cf2d52abb7bd33c2c296 (patch)
tree23bffc11b82464e2ce85950601aa57fca7638e2f
parente5be6dc98b4a843dab83a85fc57b4e3a5fdc9a65 (diff)
downloadsimplepkg-0866034c27d9e8451769cf2d52abb7bd33c2c296.tar.gz
simplepkg-0866034c27d9e8451769cf2d52abb7bd33c2c296.tar.bz2
minor fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@736 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/mkbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 6967ead..ec79912 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -327,7 +327,7 @@ function get_variable {
[ $# -ne 1 ] && handle_error $ERROR_PAR_NUMBER
[ -z $MKBUILD_NAME ] && echo "Warning: no [mkbuild_file]." && return 0
- sed -n '1,/^#>>/ p' $MKBUILD_NAME | grep "^\[\[${1}\]\]" | cut -f2- -d= | sed -e 's/^"//' -e 's/"$//'
+ sed -n '1,/^#>>/ p' $MKBUILD_NAME | grep "^\[\[${1}\]\]" | tail -n 1 | cut -f2- -d= | sed -e 's/^"//' -e 's/"$//'
}