for i in $(ls -l "${script_path}"/channels/ | awk '$1 ~ /d/ {print $9}'); do
if [[ -n $(ls "${script_path}"/channels/${i}) ]]; then
if [[ ! ${i} = "share" ]]; then
- if [[ "$(cat "${script_path}/channels/${i}/alteriso")" = "alteriso=3" ]]; then
+ if [[ "$(cat "${script_path}/channels/${i}/alteriso" 2> /dev/null)" = "alteriso=3" ]]; then
if [[ ! $(echo "${i}" | sed 's/^.*\.\([^\.]*\)$/\1/') = "add" ]]; then
if [[ ! -d "${script_path}/channels/${i}.add" ]]; then
channel_list="${channel_list[@]} ${i}"
for i in $(ls -l "${script_path}"/channels/ | awk '$1 ~ /d/ {print $9 }'); do
if [[ -n $(ls "${script_path}"/channels/${i}) ]]; then
if [[ ! ${i} = "share" ]]; then
- if [[ "$(cat "${script_path}/channels/${i}/alteriso")" = "alteriso=3" ]]; then
+ if [[ "$(cat "${script_path}/channels/${i}/alteriso" 2> /dev/null)" = "alteriso=3" ]]; then
if [[ ! $(echo "${i}" | sed 's/^.*\.\([^\.]*\)$/\1/') = "add" ]]; then
if [[ ! -d "${script_path}/channels/${i}.add" ]]; then
channel_list="${channel_list[@]} ${i}"