[buildbot] scripts: signall: silence pushd/popd directory changes

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 4 21:33:02 PST 2024


ynezz pushed a commit to buildbot.git, branch main:
https://git.openwrt.org/7a869ad9c968c98a52ba4dcb20a693978f19ad99

commit 7a869ad9c968c98a52ba4dcb20a693978f19ad99
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Mon Nov 4 20:35:37 2024 +0000

    scripts: signall: silence pushd/popd directory changes
    
    Its not needed to have those visible in the job output as it might be
    misleading.
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 scripts/signall.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/signall.sh b/scripts/signall.sh
index 7b22386..325872f 100755
--- a/scripts/signall.sh
+++ b/scripts/signall.sh
@@ -84,7 +84,7 @@ if [ -n "$APKSIGNKEY" ]; then
 
 	find "$tmpdir/tar/" -type f -name sha256sums | while read -r file; do
 		dir=$(dirname "$file")
-		pushd "$dir" || finish 3
+		pushd "$dir" > /dev/null || finish 3
 
 		grep 'packages\.adb' sha256sums | while IFS= read -r line; do
 			filename="${line#*' *'}"
@@ -95,7 +95,7 @@ if [ -n "$APKSIGNKEY" ]; then
 			sed -i "s#.*[[:space:]]\*$escaped_filename\$#$new_checksum_line#" sha256sums
 		done
 
-		popd || finish 3
+		popd > /dev/null || finish 3
 	done
 fi
 




More information about the lede-commits mailing list