From c1c39ad26723da385d7371f4cb3ffd7e3d7d6568 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 20 Oct 2023 16:40:46 -0700 Subject: [PATCH] sync-pull, sign-rpms, sync-push: add -ex to shebang line Show what we're doing, and exit on error Signed-off-by: Dan Mick --- scripts/sign-rpms | 2 +- scripts/sync-pull | 2 +- scripts/sync-push | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sign-rpms b/scripts/sign-rpms index d8a782b5..a95744a2 100755 --- a/scripts/sign-rpms +++ b/scripts/sign-rpms @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex # This script is meant to be used when signing RPMs on a "signer" box. Such # a box needs to have the actual signing keys and follow the structure for # a repository layout. The layout follows this convention: diff --git a/scripts/sync-pull b/scripts/sync-pull index 23edceab..30bb7b7d 100755 --- a/scripts/sync-pull +++ b/scripts/sync-pull @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex : ${3?"Usage: $0 \$project \$release \$sha1"} # Script exits here if command-line parameter absent, diff --git a/scripts/sync-push b/scripts/sync-push index c4e96c6d..5418cefd 100755 --- a/scripts/sync-push +++ b/scripts/sync-push @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex # This script will push repository files from the signer box to the upstream repositories. # By default it will sync all releases defined, but can optionally take one or more # releases to sync: -- 2.39.5