scripts: signall: silence pushd/popd directory changes
authorPetr Štetiar <ynezz@true.cz>
Mon, 4 Nov 2024 20:35:37 +0000 (20:35 +0000)
committerPetr Štetiar <ynezz@true.cz>
Mon, 4 Nov 2024 20:35:37 +0000 (20:35 +0000)
Its not needed to have those visible in the job output as it might be
misleading.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
scripts/signall.sh

index 7b22386ec7606b952b8f5548b5efc9bc7bbbefd0..325872f56cb754d233d87e91aefa8838fdb00906 100755 (executable)
@@ -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