Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/171)
-#! /bin/bash
+#! /usr/bin/env bash
# Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
-#! /bin/bash -e
+#! /usr/bin/env bash
# Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
+set -e
+
# This is the most shell agnostic way to specify that POSIX rules.
POSIXLY_CORRECT=1
-#! /bin/bash
+#! /usr/bin/env bash
function usage_exit {
>&2 echo "Usage: ghmerge <options including prnum and reviewer(s)>
-#! /bin/bash
+#! /usr/bin/env bash
# Script to build openssl and run regression tests.
# Usage:
# opensslbuild [-c] [-x] [config_args...]
-#! /bin/bash
+#! /usr/bin/env bash
# Script to fetch and rebase openssl branches
test -f ./config || {
-#! /bin/bash
+#! /usr/bin/env bash
function usage {
echo "Usage: pick-to-branch [<id> | h | HEAD ] <target> [<num>]