Save this simple script as parameter_test.sh to your desktop.
#!/bin/bash
process1="$5"
process2="$6"
process3="$7"
process4="$8"
process5="$9"
process6="$10"
process7="$11"
echo "$process1"
echo "$process2"
echo "$process3"
echo "$process4"
echo "$process5"
echo "$process6"
echo "$process7"
Then run the command
sudo jamf runScript -script parameter_test.sh -path "~/Desktop/Packages/Scripts" -p1 "test0" -p2 "test1" -p3 "test3" -p4 "test4" -p5 "test5" -p6 "test6" -p7 "test7" -p8 "test8"
The result I get is:
Running script parameter_test.sh...
Script exit code: 0
Script result: test1
test3
test4
test5
test6
/0
/1
What am I doing wrong? I understand typically variables should not start with numbers in bash but I assume if its been this way for a while that it must work for other people as is.
