<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ldir/scripts/env, branch master</title>
<subtitle>Kevin D-Bs staging tree</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/ldir/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/'/>
<updated>2021-11-13T20:29:41Z</updated>
<entry>
<title>scripts/env: fix env for git conf init.defaultBranch not set to "master"</title>
<updated>2021-11-13T20:29:41Z</updated>
<author>
<name>Arne Zachlod</name>
</author>
<published>2021-11-10T13:47:55Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=b5ab6d0bc577e81a77f39211883f6c0c4155b6ed'/>
<id>urn:sha1:b5ab6d0bc577e81a77f39211883f6c0c4155b6ed</id>
<content type='text'>
Since version 2.28, git has a config option init.defaultBranch to set the name
of the first branch created with git init. The env script expects this name to
be "master". This commit sets the initial branch name to "master"
instead of using the git configured one.

Signed-off-by: Arne Zachlod &lt;arne@nerdkeller.org&gt;
</content>
</entry>
<entry>
<title>scripts/env: Fix 56f813674a scripts/env: use command -v instead of which</title>
<updated>2020-07-12T12:29:28Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2020-07-12T12:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=8242c6de29951fbb549355770cd685ffe3ac9c54'/>
<id>urn:sha1:8242c6de29951fbb549355770cd685ffe3ac9c54</id>
<content type='text'>
We don't need to see how git will be executed and it produces non silent
output on 'scripts/env diff' commands when there are no differences
unlike before.

Re-introduce original silent behaviour.

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>scripts/env: fix remaining shellcheck warning</title>
<updated>2020-07-11T11:33:28Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-07-11T11:20:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=227e47b3ca964939f41c3564dd7da72d60044d00'/>
<id>urn:sha1:227e47b3ca964939f41c3564dd7da72d60044d00</id>
<content type='text'>
Fixes following shellcheck warning:

 In scripts/env line 25:
 	exit ${1:-1}
             ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts/env: use read -r instead of read</title>
<updated>2020-07-11T11:33:28Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-06T02:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d'/>
<id>urn:sha1:5b7cace9e3f553ca54e1e0ec5f7651b7d7a2052d</id>
<content type='text'>
read mangles backslashes.

Found with shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/env: exit in case of failure to cd</title>
<updated>2020-07-11T11:33:28Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-06T02:32:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=f80a540dbf9bf87e15f0f29da7f4019064ee207d'/>
<id>urn:sha1:f80a540dbf9bf87e15f0f29da7f4019064ee207d</id>
<content type='text'>
Found with shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/env: replace \! with !</title>
<updated>2020-07-11T11:33:28Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-06T02:32:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=e68810ba5352d7db89a9975f2a2a8951fc9d5b2b'/>
<id>urn:sha1:e68810ba5352d7db89a9975f2a2a8951fc9d5b2b</id>
<content type='text'>
The latter is more standard. The former throws an error under
shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/env: use command -v instead of which</title>
<updated>2020-07-11T11:33:28Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-06T02:32:35Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=56f813674a912490df327304033bf667b285930a'/>
<id>urn:sha1:56f813674a912490df327304033bf667b285930a</id>
<content type='text'>
Simpler and built in to the shell.

Found with shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/env: replace -a and -o with &amp;&amp;/||</title>
<updated>2020-01-02T22:56:19Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-01T02:01:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=995378a2a56d132594834a31c370d877c7d46d5c'/>
<id>urn:sha1:995378a2a56d132594834a31c370d877c7d46d5c</id>
<content type='text'>
The former are not well defined.

Found with shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/env: use explicit find location</title>
<updated>2020-01-02T22:51:45Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-01T02:01:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8'/>
<id>urn:sha1:2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8</id>
<content type='text'>
Some find binaries do not imply the current directory.

Found with shellcheck.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>env: only use color diffs on terminals</title>
<updated>2018-05-05T07:44:43Z</updated>
<author>
<name>Philip Prindeville</name>
</author>
<published>2018-04-10T22:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ldir/commit/?id=e495a050693952956a81847669b8b7888b4cd769'/>
<id>urn:sha1:e495a050693952956a81847669b8b7888b4cd769</id>
<content type='text'>
When sending script/env diff's output to a file or pipeline, you
don't want escape characters for ANSI color sequences fouling the
byte stream.

Signed-off-by: Philip Prindeville &lt;philipp@redfish-solutions.com&gt;
</content>
</entry>
</feed>
