I have a for loop like this:
for i in {1..$number}
do
echo "Chose a file"
git apply $(zenity --file-selection --file-filter='patch files (patch) | *.patch' --title="Select your patch file")
done
The purpose of the code is for the user to input a file, and it will patch that file. It is supposed to do it multiple times, but it only does it once. I will not post the output, since the error is from the "git apply" and not the for i in {1..$number"} I can't figure out what is wrong. Can anyone help?