diff options
| author | Emil Engler <[email protected]> | 2020-02-02 21:18:40 +0100 |
|---|---|---|
| committer | Emil Engler <[email protected]> | 2020-02-10 16:48:15 +0100 |
| commit | 2a95c7c95690112a03b14ccb0fb8f66db12cb75b (patch) | |
| tree | 12f0293f4a20d9e0487e926e8eaee66f7f97007d | |
| parent | Merge #17585: rpc: deprecate getaddressinfo label (diff) | |
| download | discoin-2a95c7c95690112a03b14ccb0fb8f66db12cb75b.tar.xz discoin-2a95c7c95690112a03b14ccb0fb8f66db12cb75b.zip | |
ci: Check for submodules
| -rwxr-xr-x | test/lint/lint-submodule.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lint/lint-submodule.sh b/test/lint/lint-submodule.sh new file mode 100755 index 000000000..d9aa021df --- /dev/null +++ b/test/lint/lint-submodule.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2020 The Bitcoin Core developers +# Distributed under the MIT software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. +# +# This script checks for git modules +export LC_ALL=C +EXIT_CODE=0 + +CMD=$(git submodule status --recursive) +if test -n "$CMD"; +then + echo These submodules were found, delete them: + echo "$CMD" + EXIT_CODE=1 +fi + +exit $EXIT_CODE + |