1
0
Fork 0
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:
Shane Kilkelly 2021-03-24 10:54:27 +00:00
parent 3b5fbcf1d5
commit 3cc435d950

View file

@ -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