mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 23:38:06 +02:00
Doctor: handle various flavours of awk
This commit is contained in:
parent
3b5fbcf1d5
commit
3cc435d950
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ function check_dependencies() {
|
|||
bash -c 'echo $BASH_VERSION'
|
||||
elif [[ "perl" == "$binary_name" ]]; then
|
||||
perl -e 'print $];'
|
||||
elif [[ "awk" == "$binary_name" ]]; then
|
||||
if awk -Wversion > /dev/null 2>&1; then
|
||||
awk -Wversion 2>&1 | head -n 1
|
||||
else
|
||||
awk --version | head -n 1
|
||||
fi
|
||||
else
|
||||
$binary_name --version | head -n 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue