1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Grammer fix / spacing fixes

This commit is contained in:
A Holt 2017-11-09 21:19:38 -05:00 committed by GitHub
parent 543461817b
commit 2aa5c5563a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,8 @@ if [ ! -f $PLAYBOOK ]; then
exit 1
fi
# Subroutine compares software version numbers. Generates rare false positives
# like "1.0 > 1" and "2.4.0 > 2.4". Avoid risks by structuring conditionals w/
# Subroutine compares software version numbers. Generates rare false positives
# like "1.0 > 1" and "2.4.0 > 2.4". Avoid risks by structuring conditionals w/
# a consistent # of decimal points e.g. "if version_gt w.x.y.z a.b.c.d; then"
function version_gt() { [ "$(printf '%s\n' "$@" | sort -V | head -1)" != "$1" ]; }
@ -29,13 +29,13 @@ function version_gt() { [ "$(printf '%s\n' "$@" | sort -V | head -1)" != "$1" ];
CURR_KERN=`uname -r`
echo "Found Kernel "$CURR_KERN""
if [ $OS == "raspbian" ] && version_gt $MIN_RPI_KERN $CURR_KERN; then
echo "Kernel "$MIN_RPI_KERN" or higher requires on Raspbian."
echo "Kernel "$MIN_RPI_KERN" or higher required on Raspbian."
echo "Please run 'apt update' then 'apt install raspberrypi-kernel' then reboot."
echo "INSTALL INSTRUCTIONS: https://github.com/iiab/iiab/wiki/IIAB-Installation"
exit 1
fi
# Verify that a recent enough version of Ansible is installed. See #449. The
# Verify that a recent enough version of Ansible is installed. See #449. The
# "include:" command was inconsistently implemented prior to Ansible 2.4.x.x
CURRENT_ANSIBLE_VER=0
if [[ `type -P ansible` ]]; then