mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
896 stars 198 forks source link

Check whether sudo is required within configure script #114

Closed metalicjames closed 2 years ago

metalicjames commented 2 years ago

ebc542f broke compilation of the codebase in the test controller. This PR fixes the build script by checking whether sudo is required for various commands, and omits it if not.

clang-format-13 is already the newest version (1:13.0.1~++20220120110924+75e33f71c2da-1~exp1~20220120231001.58).
clang-tidy-13 is already the newest version (1:13.0.1~++20220120110924+75e33f71c2da-1~exp1~20220120231001.58).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Installing NuRaft from cache...
Copying nuraft to /usr/local. sudo needed
/app/data/sources/scripts/configure.sh: line 80: sudo: command not found