Skip to content

Commit

Permalink
chore: add safe_load.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jan 18, 2024
1 parent 02fb9c1 commit bbd6798
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 bbd6798

Please sign in to comment.