Mercurial > hg > toybox
changeset 606:b9ea00fffee5
Work around a Bash bug that removes "." from the $PATH when you're root. (The FSF believes it knows better than you, and won't let you do things, in the name of Freedom.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 24 Jun 2012 15:26:53 -0500 |
parents | cd4475a2efde |
children | 8bee9c27c219 |
files | scripts/test.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/test.sh Sat Jun 23 21:28:38 2012 -0500 +++ b/scripts/test.sh Sun Jun 24 15:26:53 2012 -0500 @@ -11,7 +11,7 @@ fi cd testdir -PATH=.:$PATH +PATH="$(pwd):$PATH" . "$TOPDIR"/scripts/test/testing.sh [ -f "$TOPDIR/generated/config.h" ] && export OPTIONFLAGS=:$(echo $(sed -nr 's/^#define CFG_(.*) 1/\1/p' "$TOPDIR/generated/config.h") | sed 's/ /:/g') @@ -20,6 +20,7 @@ then for i in "$@" do + ln -sf toybox $i . "$TOPDIR"/scripts/test/$i.test done else