grep directly on the explorer file

This commit is contained in:
Darko Poljak 2018-10-05 15:14:03 +02:00
parent 02f39bcf6f
commit b284bafbee

View file

@ -43,8 +43,7 @@ for property in *; do
set -- "$@" "--$property" "$(cat "$property")"
done
ver="$(cat "$__global/explorer/os_version")"
if echo "$ver" | grep -q '^10\.'; then # Version is 10.x
if grep -q '^10\.' "$(cat "$__global/explorer/os_version")" ; then # Version is 10.x
__jail_freebsd10 "$@"
else
__jail_freebsd9 "$@"