]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/patch/okay
inst/bootsetup: fix unformated esp check (thanks yellow_apple)
[plan9front.git] / rc / bin / patch / okay
1 #!/bin/rc
2
3 rfork e
4 if(! ~ $#* 1){
5         echo usage: patch/okay dir >[1=2]
6         exit usage
7 }
8
9 i=$1
10 if(! test -s $i/files || ! test -s $i/readme)
11         exit 'missing files'
12 if(grep -v '^/[_a-zA-Z0-9.\-+/:]+ [_a-zA-Z0-9.\-+:]+$' $i/files)
13         exit 'bad file list' 
14 exit 0