diff --git a/INSTALL/ubuntu-easyinstall.sh b/INSTALL/ubuntu-easyinstall.sh index b10190bb..5d261922 100644 --- a/INSTALL/ubuntu-easyinstall.sh +++ b/INSTALL/ubuntu-easyinstall.sh @@ -18,7 +18,7 @@ declare -i getubuntuversion=$(lsb_release -r | awk '{print $2}' | cut -d . -f1) echo "=============" echo " Ubuntu Version: $getubuntuversion" echo "=============" -if [[ "$getubuntuversion" == "16" || "$getubuntuversion" < "16" ]]; then +if [[ "$getubuntuversion" == "16" || "$getubuntuversion" -le "16" ]]; then echo "=============" echo "Shinobi - Get FFMPEG 3.x from ppa:jonathonf/ffmpeg-3" sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -y diff --git a/INSTALL/ubuntu-touchless-iso.sh b/INSTALL/ubuntu-touchless-iso.sh index 99191ed6..c0e6488e 100644 --- a/INSTALL/ubuntu-touchless-iso.sh +++ b/INSTALL/ubuntu-touchless-iso.sh @@ -15,7 +15,7 @@ echo " Ubuntu Version: $getubuntuversion" echo "=============" apt update -y apt update --fix-missing -y -if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" > "18" ]; then +if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" -le "18" ]; then apt install sudo wget -y sudo apt install -y software-properties-common sudo add-apt-repository universe -y @@ -66,7 +66,7 @@ if ! [ -x "$(command -v npm)" ]; then fi sudo apt install make zip -y if ! [ -x "$(command -v ffmpeg)" ]; then - if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" < "16" ]; then + if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" -le "16" ]; then echo "=============" echo "Shinobi - Get FFMPEG 3.x from ppa:jonathonf/ffmpeg-3" sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -y diff --git a/INSTALL/ubuntu-touchless.sh b/INSTALL/ubuntu-touchless.sh index 642e53e8..418a58eb 100644 --- a/INSTALL/ubuntu-touchless.sh +++ b/INSTALL/ubuntu-touchless.sh @@ -22,7 +22,7 @@ if [ "$disableIpv6" = "y" ] || [ "$disableIpv6" = "Y" ]; then sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1 fi -if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" > "18" ]; then +if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" -gt "18" ]; then apt install sudo wget -y sudo apt install -y software-properties-common sudo add-apt-repository universe -y @@ -66,7 +66,7 @@ if ! [ -x "$(command -v npm)" ]; then fi sudo apt install make zip -y if ! [ -x "$(command -v ffmpeg)" ]; then - if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" < "16" ]; then + if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" -le "16" ]; then echo "=============" echo "Shinobi - Get FFMPEG 3.x from ppa:jonathonf/ffmpeg-3" sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -y diff --git a/INSTALL/ubuntu.sh b/INSTALL/ubuntu.sh index a2758d99..b7e9fa2e 100644 --- a/INSTALL/ubuntu.sh +++ b/INSTALL/ubuntu.sh @@ -13,7 +13,7 @@ getubuntuversion=$(lsb_release -r | awk '{print $2}' | cut -d . -f1) echo "=============" echo " Ubuntu Version: $getubuntuversion" echo "=============" -if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" > "18" ]; then +if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" -gt "18" ]; then apt install sudo wget -y sudo apt install -y software-properties-common sudo add-apt-repository universe -y @@ -61,7 +61,7 @@ if ! [ -x "$(command -v npm)" ]; then fi sudo apt install make zip -y if ! [ -x "$(command -v ffmpeg)" ]; then - if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" < "16" ]; then + if [ "$getubuntuversion" = "16" ] || [ "$getubuntuversion" -le "16" ]; then echo "=============" echo "Shinobi - Get FFMPEG 3.x from ppa:jonathonf/ffmpeg-3" sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -y