aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/"$//'
}