Rev 2729 Rev 2730
Line 36... Line 36...
36 let i++ 36 let i++
37 done 37 done
38 return $EXIT 38 return $EXIT
39 } 39 }
40   40  
-   41 # Sort files
-   42 # Mask
41 function tidyup() { 43 function tidyup() {
42 info "sorting $1" 44 info "sorting $1"
43 "$TIDYUP" $1 45 "$TIDYUP" $1
44 EXIT=$? -  
45 if [ $EXIT -eq 1 ]; then -  
46 info "No new files to sort" -  
47 return 0 -  
48 elif [ $EXIT -ne 0 ]; then 46 if [ "$?" -ne 0 ]; then
49 error "sorting failed, please send logfile.txt to toxygen1@gmail.com" 47 error "sorting failed, please send logfile.txt to toxygen1@gmail.com"
50 return 1 48 return 1
51 fi 49 fi
52 return 0 50 return 0
53 } 51 }
54   52  
-   53 # Test public key authentication
-   54 function sshtest() {
-   55 ./test.sh
-   56 if [ "$?" -eq 0 ]; then
-   57 info "Authentication works"
-   58 return 0
-   59 else
-   60 error "Authentication does not work"
-   61 return 1
-   62 fi
-   63 }
-   64  
-   65 # Check if we can connect, otherwise terminate
-   66 sshtest || exit 1
-   67  
55 # Change working directory 68 # Change working directory
56 cd $1 69 cd $1
57   70  
58 # reset counter 71 # reset counter
59 HOURCOUNT=24 72 HOURCOUNT=24