Add files via upload

This commit is contained in:
mutto233
2018-06-27 03:12:02 -04:00
committed by GitHub
parent 5b33e787a6
commit 12a3a7a4c6
3 changed files with 177 additions and 103 deletions

View File

@@ -71,6 +71,9 @@ done < "$filename"
for i in "${!CHANNEL_DIR_ARR[@]}"
do
CHANNEL_DIR_NUMBERS[i]=$(echo ${CHANNEL_DIR_SORTED[i]} | sed "s/^pseudo-channel${CHANNEL_DIR_INCREMENT_SYMBOL}0*//")
if [ -z ${CHANNEL_DIR_NUMBERS[i]} ]; then
CHANNEL_DIR_NUMBERS[i]=0
fi
done
# If this script see's there are multiple channels,
@@ -89,7 +92,10 @@ if [ "${#CHANNEL_DIR_ARR[@]}" -gt 1 ]; then
# We are now going to do the same thing here, just with previous channel
PREV_CHANNEL=$(echo $(<$OUTPUT_PREV_CHANNEL_PATH/$OUTPUT_PREV_CHANNEL_FILE) | sed "s/^0*//")
if [ -z $PREV_CHANNEL ]; then
PREV_CHANNEL=0
fi
echo "+++++ It looks like the previous channel was: $PREV_CHANNEL"