diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-07-21 16:56:37 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-07-25 10:02:50 -0700 |
commit | 8b36d25b139c0e17c14baa8de0cabe8039cc8389 (patch) | |
tree | 883570d1b9b403af76a9b5d423a8bc60bf9cfbf9 | |
parent | e895bc3e7f5a1b73b0fd68f82a5a484b61bc4147 (diff) |
ncurses: don't rely on bitbake's expansion of undefined variables behavior
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | recipes/ncurses/ncurses.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/ncurses/ncurses.inc b/recipes/ncurses/ncurses.inc index 48412c1998..5d923f41ea 100644 --- a/recipes/ncurses/ncurses.inc +++ b/recipes/ncurses/ncurses.inc @@ -53,14 +53,14 @@ do_install() { for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 do local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)" - local basedir="$(basename $(dirname "${termfile}"))" + local basedir="$(basename $(dirname "$termfile"))" - if [ -n "${termfile}" ] + if [ -n "$termfile" ] then - install -d ${D}${sysconfdir}/terminfo/${basedir} - mv ${termfile} ${D}${sysconfdir}/terminfo/${basedir}/ - ln -s /etc/terminfo/${basedir}/${x} \ - ${D}${datadir}/terminfo/${basedir}/${x} + install -d ${D}${sysconfdir}/terminfo/$basedir + mv $termfile ${D}${sysconfdir}/terminfo/$basedir/ + ln -s /etc/terminfo/$basedir/${x} \ + ${D}${datadir}/terminfo/$basedir/${x} fi done # i think we can use xterm-color as default xterm |