I'm trying to make a simple script that copies a game file 10 times, renaming them 1-10 for when the game patches/updates. Otherwise I have to do it manually. I've been editing with sublime script and am not sure on how to debug or what I'm even doing wrong.
#!/bin/bash
wiz=1
mv /home/redking/.local/share/Steam/steamapps/common/Wizard101/Bin/WizardGraphicalClient.exe /home/redking/.local/share/Steam/steamapps/common/Wizard101
for wiz in 1 .. 10
do
if wiz >= 10
then wiz=1
else
wiz+1
cp /home/redking/.local/share/Steam/steamapps/common/Wizard101/WizardGraphicalClient.exe /home/redking/.local/share/Steam/steamapps/common/Wizard101/Bin/$wiz.exe
done