mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Use Plan 9 file(1).
This commit is contained in:
parent
e8dc77f7ae
commit
5fd59258dc
1 changed files with 2 additions and 2 deletions
4
bin/src
4
bin/src
|
@ -10,9 +10,9 @@ fn dbsrc{
|
|||
}
|
||||
|
||||
fn go{
|
||||
type=`{file $1}
|
||||
type=`{9 file $1}
|
||||
switch($type){
|
||||
case *'script text'*
|
||||
case *script*
|
||||
plumbit $1 '(script)'
|
||||
case *executable* *'plan 9 boot image'* *'shared object'*
|
||||
plumbit `{dbsrc $1} '(executable)'
|
||||
|
|
Loading…
Reference in a new issue