| commit | 40081e0df1d9688771443c0ade2547c4d0c4fdb9 | [log] [download] |
|---|---|---|
| author | Kir Kolyshkin <kir@openvz.org> | Thu Apr 14 20:36:11 2011 +0400 |
| committer | Kir Kolyshkin <kir@openvz.org> | Thu Apr 14 20:39:13 2011 +0400 |
| tree | 10d89901d8e75360c506405c1211b1c3e07c7d94 | |
| parent | 057b0d7fc600996ff87353357eae6818770558bb [diff] |
postcreate.sh: workaround for some awk versions
Some awk versions (such as one used in Fedora Core 4...) fails
to work correctly with code using split() with the third argument,
like this:
echo "1 2 3" | awk '{n = split($0, a, /[ \t]/); print n }
Apparently we can just remove the third argument and rely on value of FS.
Should fix crontab randomization on some distros.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>