diff --git a/safer_load.sh b/safer_load.sh new file mode 100755 index 0000000..7298eef --- /dev/null +++ b/safer_load.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +function check_feature() { + cat Cargo.toml | grep -E 'default = \[.*"speculos"' + return $? +} + +check_feature + +if [ $? = 0 ]; +then + echo DISABLE SPECULOS FEAT + exit 1 +else + cargo ledger build -l "$1" +fi