Added new bash script logic to better sequentially sort channels by channel number.

This commit is contained in:
Justin Emter
2017-12-22 14:16:49 -08:00
parent 2e191cd6f5
commit 8616a2aae6
5 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ CHANNEL_DIR_INCREMENT_SYMBOL="_"
#----END EDITABLE VARS-------
# Scan the dir to see how many channels there are, store them in an arr.
CHANNEL_DIR_ARR=( $(find . -maxdepth 1 -type d -name '*'"$CHANNEL_DIR_INCREMENT_SYMBOL"'[[:digit:]]*' -printf "%P\n") )
CHANNEL_DIR_ARR=( $(find . -maxdepth 1 -type d -name '*'"$CHANNEL_DIR_INCREMENT_SYMBOL"'[[:digit:]]*' -printf "%P\n" | sort -t_ -n) )
# If this script see's there are multiple channels,
# then loop through each channel and run clone the repo there