mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-17 16:53:21 +00:00
Added increment symbol option to new sort logic, also made all scripts executable from the get go.
This commit is contained in:
2
multi-channel-bash-scripts/update-channels-from-git.sh
Normal file → Executable file
2
multi-channel-bash-scripts/update-channels-from-git.sh
Normal file → Executable 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" | sort -t_ -n) )
|
||||
CHANNEL_DIR_ARR=( $(find . -maxdepth 1 -type d -name '*'"$CHANNEL_DIR_INCREMENT_SYMBOL"'[[:digit:]]*' -printf "%P\n" | sort -t"$CHANNEL_DIR_INCREMENT_SYMBOL" -n) )
|
||||
|
||||
# If this script see's there are multiple channels,
|
||||
# then loop through each channel and run clone the repo there
|
||||
|
||||
Reference in New Issue
Block a user