mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
20 lines
382 B
Bash
20 lines
382 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
ERROR=0
|
||
|
if [ -z "$(which cargo)" ]; then
|
||
|
echo "You don't have cargo / rust installed!"
|
||
|
echo "Go to <https://www.rust-lang.org/tools/install> for instructions!"
|
||
|
ERROR=1
|
||
|
fi
|
||
|
|
||
|
if [ -z "$(which wasm-pack)" ]; then
|
||
|
echo "You don't have wasm-pack installed! Installing it now..."
|
||
|
cargo install wasm-pack
|
||
|
fi
|
||
|
|
||
|
if [ $ERROR -eq 1 ]; then
|
||
|
exit 1
|
||
|
fi
|