missed a maxdepth

master
Jay 2 years ago
parent 77649fb6e6
commit 88142d9003

@ -1,6 +1,6 @@
#!/bin/bash
#ajw v1.50 - jukebox for asterisk wizard
#ajw v1.51 - jukebox for asterisk wizard
#Jay Moore/NQ4T - https://git.pickmy.org/dewdude/Asterisk_Jukebox
#Twitter: @Music_OnHold
#Licensed under GPL-3.0-or-later
@ -36,7 +36,7 @@ printf "same = n,GoTo(cart-player,*\${EXTEN:-2},1)\n\n"
# main
interactive() {
printf "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n |a|j|w| - asterisk jukebox wizard\n version 1.50 - Jay Moore/NQ4T\ngit.pickmy.org/dewdude/Asterisk_Jukebox\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\n\n"
printf "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n |a|j|w| - asterisk jukebox wizard\n version 1.51 - Jay Moore/NQ4T\ngit.pickmy.org/dewdude/Asterisk_Jukebox\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n\n\n"
printf "Pick a name/identifier for this jukebox: "
read -r name
printf "\nEnter the folder your jukebox roots live under. (Leave blank if they're under %s): " "$asd"
@ -63,7 +63,7 @@ bye;
# album context loop
loop() {
dir=$(find "$asd""$rootfolder" -mindepth 1 -type d -printf '%f\n' | sort -n)
dir=$(find "$asd""$rootfolder" -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort -n)
a=0
for folder in $dir
do

Loading…
Cancel
Save