timrettop

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by timrettop

  1. @RobJ The version check fails with 6.10 (As you predicted when you created this. This seems to be a valid alternative version check from a variety of version number tests I've tried. It pulls the major and minor version numbers and then tests with those values to determine whether to add the string. I initialized $v as well to simplify it slightly. v="" #Initialize $v # check unRAID version v1=`cat /etc/unraid-version` #v1="version=\"7.0.5\"" # For Testing v2="$(echo $v1 | cut -d \" -f2)" v2M="$(echo $v2 | cut -d '.' -f 1)" v2m="$(echo $v2 | cut -d '.' -f 2)" if [[ $v2M == 6 ]] then if [[ $v2m -ge 2 ]] then v=" status=progress" fi elif [[ $v2M -gt 6 ]] then v=" status=progress" fi #echo -e "v1=$v1 v2=$v2 v2M=$v2M v2m=$v2m v=$v\n"