Skip to content

Commit e19f77e

Browse files
committed
letting ino error out for itself and removing redundant result printint
1 parent f10757d commit e19f77e

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

plugin/vim-arduino

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,6 @@
1010
}
1111

1212
command=""
13-
correct_dir_structure=false
14-
port_available=false
15-
16-
17-
if [ -z $(ls /dev/tty.* | grep usb) ]
18-
then
19-
exit 1
20-
fi
21-
22-
while [ $(basename `pwd`) != '/' ]
23-
do
24-
if [ $(basename `pwd`) == 'src' ] || [ $(basename `pwd`) == 'lib' ]
25-
then
26-
correct_dir_structure=true
27-
cd ..
28-
break
29-
elif [ $(ls | egrep "lib|src" | wc -l) -eq 2 ]
30-
then
31-
correct_dir_structure=true
32-
break
33-
fi
34-
35-
cd ..
36-
done
37-
38-
if ! $correct_dir_structure
39-
then
40-
exit 1
41-
fi
4213

4314
while [ $# -gt 0 ]
4415
do

plugin/vim-arduino.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function! s:InvokeArduinoCli(deploy)
3535

3636
let l:command = s:helper_dir . "/vim-arduino " . l:flag
3737
let l:result = system(l:command)
38-
call s:PrintStatus(v:shell_error)
3938
echo l:result
4039
call s:PrintStatus(v:shell_error)
4140
endfunction

0 commit comments

Comments
 (0)