forked from ungleich-public/cdist
grep directly on the explorer file
This commit is contained in:
parent
02f39bcf6f
commit
b284bafbee
1 changed files with 1 additions and 2 deletions
|
@ -43,8 +43,7 @@ for property in *; do
|
||||||
set -- "$@" "--$property" "$(cat "$property")"
|
set -- "$@" "--$property" "$(cat "$property")"
|
||||||
done
|
done
|
||||||
|
|
||||||
ver="$(cat "$__global/explorer/os_version")"
|
if grep -q '^10\.' "$(cat "$__global/explorer/os_version")" ; then # Version is 10.x
|
||||||
if echo "$ver" | grep -q '^10\.'; then # Version is 10.x
|
|
||||||
__jail_freebsd10 "$@"
|
__jail_freebsd10 "$@"
|
||||||
else
|
else
|
||||||
__jail_freebsd9 "$@"
|
__jail_freebsd9 "$@"
|
||||||
|
|
Loading…
Reference in a new issue