From 0ed30027e3f176f0aa5d250b103bee612e122b5d Mon Sep 17 00:00:00 2001 From: Loren Moore Date: Tue, 10 May 2022 21:09:45 -0400 Subject: [PATCH] Didn't need to escape a character in script. Fixed. --- README.md | 2 +- ajw.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a20fea..7faec2d 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ pressing 0. # History ``` +11-MAY-2022 - Fatal error in accidently escaped character fixed. 07-MAY-2022 - Initial Commit - ``` # Explanation of Generated Dialplan diff --git a/ajw.sh b/ajw.sh index 983954e..a4ad5c4 100644 --- a/ajw.sh +++ b/ajw.sh @@ -1,5 +1,5 @@ #!/bin/bash -#ajw v1.0 - jukebox for asterisk wizard +#ajw v1.01 - jukebox for asterisk wizard #Jay Moore/NQ4T - https://git.pickmy.org/dewdude/ajw #Licensed under GPL-3.0-or-later @@ -16,7 +16,7 @@ printf "same = n,WaitExten($delay)\nsame = n,Set(m=\$[\${m} + 1])\nsame = n,GoTo album() { printf "exten = _%02dXX,1,Set(aa=$rootfolder/$folder)\n" $a [ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" = \"00\"]?8track-player,#$tc,1)\n" || printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" = \"00\"]?8track-player,*$tc,1)\n" -[ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" < \"10\"]?cart-player,\#\${EXTEN:-1},1)\n" +[ "$lz" -eq 0 ] && printf "same = n,GoToIf(\$[\"\${EXTEN:-2}\" < \"10\"]?cart-player,#\${EXTEN:-1},1)\n" printf "same = n,GoTo(cart-player,*\${EXTEN:-2},1)\n\n" } >> $name-juke.conf