14 lines
213 B
Plaintext
14 lines
213 B
Plaintext
|
#!/usr/bin/awk -f
|
||
|
BEGIN{
|
||
|
href=ARGV[1]
|
||
|
|
||
|
if( match(href,/\.glb[#?]?/) ){
|
||
|
|
||
|
print( "<a-entity xrf='" href "'></a-entity>" ) > "/root/index.html"
|
||
|
|
||
|
}else{
|
||
|
|
||
|
system("js 'window.open(\"" href "\")'" )
|
||
|
}
|
||
|
}
|