Skip to content
Snippets Groups Projects
Commit 796261d5 authored by Julien Cretin's avatar Julien Cretin Committed by Julien Cretin
Browse files

Check that rustup and pip3 are installed

Fixes #25
parent 06f6ea94
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ This guide **does not** cover how to setup the JTAG probe on your system. ...@@ -43,7 +43,7 @@ This guide **does not** cover how to setup the JTAG probe on your system.
In order to compile and flash a working OpenSK firmware, you will need the In order to compile and flash a working OpenSK firmware, you will need the
following: following:
* a working [Rust](https://rustup.rs/) toolchain installed on your system * rustup (can be installed with https://rustup.rs/)
* python3 and pip * python3 and pip
* the OpenSSL command line tool * the OpenSSL command line tool
......
...@@ -13,6 +13,19 @@ ...@@ -13,6 +13,19 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
set -e
# Check that rustup and pip3 are installed
check_command () {
if ! which "$1" >/dev/null
then
echo "Missing $1 command.$2"
exit 1
fi
}
check_command rustup " Follow the steps under https://rustup.rs/ to install it."
check_command pip3
# Ensure the submodules are pulled and up-to-date # Ensure the submodules are pulled and up-to-date
git submodule update --init git submodule update --init
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment