[jhalfs] 02/02: update-installed.sh: prevent error message
"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Wed, 24 Dec 2025 14:42:13 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1766587344-937-52071 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This is an automated email from the git hooks/post-receive script. git pushed a commit to branch trunk in repository jhalfs. commit b5aeccda15eb9bc8351af86a0c26fe865f77c42f Author: Pierre Labastie <[email protected]> AuthorDate: Wed Dec 24 15:39:57 2025 +0100 update-installed.sh: prevent error message When removing work files at the end of update-installed.sh, it is possible that some of them have not been created (track.tmp if newpack.conf is empty, e.g.). so use rm -f --- BLFS/update-installed.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BLFS/update-installed.sh b/BLFS/update-installed.sh index 55b3423..358a989 100755 --- a/BLFS/update-installed.sh +++ b/BLFS/update-installed.sh @@ -63,5 +63,5 @@ sed -n 's/CONFIG_\([^=[:space:]]\+\)[[:space:]]*=[[:space:]]*y/\1/p' newpack.con sed -i "s@PACKDESC@${MYDIR}/packdesc.dtd@" track.tmp xmllint --format --postvalid track.tmp > "$TRACKFILE" done #while read pack -rm newpack.{in,conf} track.tmp +rm -f newpack.{in,conf} track.tmp exit -- To stop receiving notification emails like this one, please contact the administrator of this repository. ------------=_1766587344-937-52071 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page ------------=_1766587344-937-52071--