Skip to content

Commit

Permalink
Check for number in mac and linux install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorfree committed Jun 10, 2024
1 parent 8b9b021 commit a961b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions linInstall
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ numWith=0
[ "${zoneTwo}" ] || zoneTwo=${arrayone[1]}
withZoneTwo=$(${ROON}/bin/get_zone_info -l -z "${zoneTwo}")
numWithTwo=$(echo "${withZoneTwo}" | awk -F ',' ' { print NF } ')
[ ${numWithTwo} -gt 0 ] && {
groupTwo=$(echo "${zoneTwo},${withZoneTwo}" | sed -e "s/${defaultZone},//" -e "s/,/, /g" -e "s/:/,/")
[ -z "${numWithTwo//[0-9]}" ] && {
[ ${numWithTwo} -gt 0 ] && {
groupTwo=$(echo "${zoneTwo},${withZoneTwo}" | sed -e "s/${defaultZone},//" -e "s/,/, /g" -e "s/:/,/")
}
}
unset IFS
[ -n "${saved_IFS+set}" ] && {
Expand Down
6 changes: 4 additions & 2 deletions macInstall
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,10 @@ numWith=0
[ "${zoneTwo}" ] || zoneTwo=${arrayone[1]}
withZoneTwo=$(${ROON}/bin/get_zone_info -l -z "${zoneTwo}")
numWithTwo=$(echo "${withZoneTwo}" | awk -F ',' ' { print NF } ')
[ ${numWithTwo} -gt 0 ] && {
groupTwo=$(echo "${zoneTwo},${withZoneTwo}" | sed -e "s/${defaultZone},//" -e "s/,/, /g" -e "s/:/,/")
[ -z "${numWithTwo//[0-9]}" ] && {
[ ${numWithTwo} -gt 0 ] && {
groupTwo=$(echo "${zoneTwo},${withZoneTwo}" | sed -e "s/${defaultZone},//" -e "s/,/, /g" -e "s/:/,/")
}
}
unset IFS
[ -n "${saved_IFS+set}" ] && {
Expand Down

0 comments on commit a961b76

Please sign in to comment.