diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-21 20:50:34 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-21 20:50:34 +0000 |
commit | 058d1ae7730d8306242035347cacd1ca7b9787d7 (patch) | |
tree | ec6a893ba75d896b4c57c82c842cceebb7c43ae6 /yarn.tests/env.script | |
parent | 099c7d84298c12db09979903720fa44c615e1f7b (diff) | |
download | cmdtest-058d1ae7730d8306242035347cacd1ca7b9787d7.tar.gz |
Make yarn set $HOME to an existing directory
Diffstat (limited to 'yarn.tests/env.script')
-rwxr-xr-x | yarn.tests/env.script | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yarn.tests/env.script b/yarn.tests/env.script index d14a21a..d24172d 100755 --- a/yarn.tests/env.script +++ b/yarn.tests/env.script @@ -7,6 +7,7 @@ cat << 'EOF' > "$DATADIR/env.yarn" THEN DATADIR is set AND SRCDIR is set AND NOTSET is not set + AND HOME is prefixed by DATADIR IMPLEMENTS THEN (\S+) is set env @@ -14,6 +15,10 @@ cat << 'EOF' > "$DATADIR/env.yarn" IMPLEMENTS THEN (\S+) is not set ! env | grep "^$MATCH_1=" + + IMPLEMENTS THEN (\S+) is prefixed by (\S+) + x=$(env | sed -n "/^$MATCH_2=/s///p") + env | grep "^$MATCH_1=$x/" EOF NOTSET=foo ./run-yarn "$DATADIR/env.yarn" |