File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ MNEMONICS_2OF3=(
88  ' shadow pistol academic always adequate wildlife fancy gross oasis cylinder mustang wrist rescue view short owner flip making coding armed' 
99  ' shadow pistol academic acid actress prayer class unknown daughter sweater depict flip twice unkind craft early superior advocate guest smoking' 
1010)
11+ SCRIPT_DIR=" $( dirname " $( readlink -f " ${BASH_SOURCE[0]} " ) " ) " 
1112
1213echo_bold () {
1314  local  bold normal
@@ -24,11 +25,12 @@ echo_error() {
2425  echo  >&2  " ${error}${* }${normal} " 
2526}
2627
28+ shamir () {
29+   python3 -m shamir_mnemonic.cli " $@ " 
30+ }
31+ 
2732run_tests () {
28-   if  !  command  -v shamir >  /dev/null;  then 
29-     echo  ' shamir executable not found' 
30-     exit  1
31-   fi 
33+   cd  -- " ${SCRIPT_DIR} " 
3234  echo_bold ' Starting CLI tests for runtime errors (NOT testing correctness)' 
3335  local  status=0
3436  echo_bold ' Testing create 2of3...' 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments