shell.req: use "file -bL"

This commit is contained in:
Alexey Tourbin 2007-08-28 02:12:58 +04:00
parent 806a7e6491
commit 7b199c08da

View File

@ -26,7 +26,7 @@ ShellReq()
local f="$1"; shift
local t sh
t=$(file -b "$f") || Fatal "${t:-$f: file type not available}"
t=$(file -bL "$f") || Fatal "${t:-$f: file type not available}"
case "$t" in
*"Bourne-Again shell script text"*)
sh=/bin/bash ;;