]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
UBUNTU: [Packaging] update helper scripts
authorRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:16:54 +0000 (17:16 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:16:54 +0000 (17:16 +0200)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
debian/scripts/helpers/open

index bf58b85e62ab06e33bb2f6f7dc26d8e38d441006..797d778d29d1b13b75d10b2628e046f571fd0775 100755 (executable)
@@ -192,8 +192,8 @@ if [ -d "$DEBIAN/abi" ]; then
                if [ -f "$DEBIAN/abi/version" ]; then
                        # This is an unversioned ABI directory, so simply update the
                        # version file
-                       echo "$new" > "$DEBIAN/abi/version"
-                       git add "$DEBIAN/abi/version"
+                       echo "$new" | run tee "$DEBIAN/abi/version" >/dev/null
+                       run git add "$DEBIAN/abi/version"
                else
                        # Get the old ABI directory:
                        old=$(find "$DEBIAN/abi/" -mindepth 1 -maxdepth 1 -type d | \