1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

check GNU awk

This commit is contained in:
Sylvain 2019-10-08 15:23:45 +02:00
parent ef1a6f8753
commit d74b4ae273

View File

@ -8,7 +8,12 @@ config()
read -rp "Continue anyway? (y/n) " confirm </dev/tty
if [[ "$confirm" = "n" ]]; then exit 1; fi
fi
if ! command -v awk || ! [[ $(awk -W version) =~ ^GNU ]]
then
echo "Please install GNU Awk before running this script."
echo "gawk was not found, exiting..."
exit 1
fi
FM_PATH=$(pwd)
TYPE="NOT-FOUND"
read -rp "Is fab-manager installed at \"$FM_PATH\"? (y/n) " confirm </dev/tty