Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from dj8yfo/a_bit_safer_load_script
Browse files Browse the repository at this point in the history
chore: add `safe_load.sh`
  • Loading branch information
dj8yfo authored Jan 18, 2024
2 parents 02fb9c1 + bbd6798 commit 2ede498
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions safer_load.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2ede498

Please sign in to comment.