summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 15:27:03 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 15:27:03 +0100
commita0710ef9cac6e9f27852676d1bafa5d8c5f8ac47 (patch)
tree94a72508c25e178a67655ad6efb876a5dc88a4bc
parent86eb566b131b4e71dce0a911a0d97890338fbe9f (diff)
git.sh: hide e() output on for loop
this for loop is a hack to make sure that all the sources get nuked (using nuke.list files). hide the messages so that they do not appear when running just any command in the trees script. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/git.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh
index cd0dffa5..3ee27fc6 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -66,7 +66,8 @@ fetch_project_repo()
clone_project
for x in config/git/*; do
- [ -f "$x" ] && nuke "${x##*/}" "src/${x##*/}"; continue
+ [ -f "$x" ] && nuke "${x##*/}" "src/${x##*/}" 2>/dev/null; \
+ continue
done
}