I have been working on a simple script to divide a variable by a static integer that works just fine when run on it's own, but when run via a policy in JAMF it is throwing an error.
Here is my code:
warningSeconds=7200
convertTime=$((warningSeconds/60))
echo "Time: $convertTime"
When I run this in terminal I get the expected result: Time: 120
However when I use this same snippet of code via a JAMF Policy, the variable is always seen as /1 and spits out the following error: line 28: /1: syntax error: operand expected (error token is "/1")
Is there something simple I am missing here?