]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
minor fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 5 Jan 2009 01:02:18 +0000 (01:02 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 5 Jan 2009 01:02:18 +0000 (01:02 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@736 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index 6967ead228184a8bcba75e74511d4272e9a1214a..ec79912f5b15c228a12ab518614061601dc8d41e 100755 (executable)
@@ -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/"$//'
 
 }