<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Doug,<br>
      <br>
      In your script you have  "MAX_FILE" variable set to 2.<br>
      <b><i></i></b><b><i># Maximum file number (1 - MAX_FILE)</i></b><b><i><br>
        </i></b><b><i>MAX_FILE="2"</i></b><br>
      <br>
      But in your comparison statement you have the greater than check
      hard coded to 2.<br>
      <b><i>if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt 2 ]</i></b><br>
      <br>
      I think this is what you intended for the comparison to read.<br>
      <b><i>if [ -z "$1" ] || [ "$1" -lt "1" ] || [ "$1" -gt "$MAX_FILE"
          ]<br>
          <br>
        </i></b>73's<br>
      LaRoy, K5TW<br>
      <br>
      <br>
      On 3/25/2016 10:26 AM, Doug Crompton via arm-allstar wrote:<br>
    </div>
    <blockquote cite="mid:BLU171-W6211B0515880689EBF0422BA830@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr"><font style="" color="#000000"
          face="Tahoma,sans-serif">These attachments were in the
          original message but I repeat them here...<br id="FontBreak">
        </font><br>
        <b><font style="font-size:16pt;" size="4">73 Doug</font><font
            style="font-size:16pt;" size="4"><br>
          </font><font style="font-size:16pt;" size="4">WA3DSP</font><font
            style="font-size:16pt;" size="4"><br>
          </font><font style="font-size:16pt;" size="4"><a class="moz-txt-link-freetext" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></font></b><font
          style="font-size:16pt;" size="4"><br>
        </font><br>
        <br>
        <div>> Date: Fri, 25 Mar 2016 01:39:59 -0500<br>
          > To: <a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
          > Subject: [arm-allstar] A Script to Change Courtesy tones<br>
          > From: <a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
          > CC: <a class="moz-txt-link-abbreviated" href="mailto:kevin.babich@gmail.com">kevin.babich@gmail.com</a><br>
          > <br>
          > Doug,<br>
          > <br>
          > Your email references an attached script, could you
          please send this to me?<br>
          > <br>
          > Kindest Regards,<br>
          > <br>
          > Kevin Babich | N9IAA<br>
          > Valparaiso, IN 46383<br>
          > <br>
          > Mobile: 219.406.9707<br>
          > <br>
          > Cessna 421<br>
          > Cesssna Conquest I/II<br>
          > Beechcraft King Air 90/200<br>
          > <br>
          <br>
        </div>
      </div>
      <br>
      -- <br>
      This message has been scanned for viruses and
      <br>
      dangerous content by the
      <a moz-do-not-send="true" href="http://www.dtisp.com/"><b>DTISP
          MailScanner</b></a>, and is
      <br>
      believed to be clean.
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________

arm-allstar mailing list
<a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a>

Visit the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">http://hamvoip.org</a></pre>
    </blockquote>
    <br>
  <br />
<table style="border-top: 1px solid #aaabb6;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=oa-2115-v2-b" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange-v1.png" /></a></td>
                <td style="width: 470px; padding-top: 20px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=oa-2115-v2-b" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table></body>
</html>