From: Dan Mick Date: Fri, 20 Oct 2023 23:40:46 +0000 (-0700) Subject: sync-pull, sign-rpms, sync-push: add -ex to shebang line X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c1c39ad26723da385d7371f4cb3ffd7e3d7d6568;p=ceph-build.git 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 --- 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: