mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
check GNU awk
This commit is contained in:
parent
ef1a6f8753
commit
d74b4ae273
@ -8,7 +8,12 @@ config()
|
|||||||
read -rp "Continue anyway? (y/n) " confirm </dev/tty
|
read -rp "Continue anyway? (y/n) " confirm </dev/tty
|
||||||
if [[ "$confirm" = "n" ]]; then exit 1; fi
|
if [[ "$confirm" = "n" ]]; then exit 1; fi
|
||||||
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)
|
FM_PATH=$(pwd)
|
||||||
TYPE="NOT-FOUND"
|
TYPE="NOT-FOUND"
|
||||||
read -rp "Is fab-manager installed at \"$FM_PATH\"? (y/n) " confirm </dev/tty
|
read -rp "Is fab-manager installed at \"$FM_PATH\"? (y/n) " confirm </dev/tty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user