You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vers=($(./get_unity_versions.sh | sed s/a/.a./g | sed s/b/.b./g | sed s/f/.f./g | sed s/p/.p./g | sort -t. -k1,1n -k2,2n -k3,3n -k4,4d -k5,5n | sed s/.a./a/g | sed s/.b./b/g | sed s/.f./f/g | sed s/.p./p/g))
# First argument is the file
# Second argument is the reference script
# Third argument is the command to be used on each version
function generate() {
echo "#!/bin/bash" > "$1"
echo ". \$(dirname \"\$0\")/$2" >> "$1"
for ((i=0; i<${#vers[@]}; i++));
do
echo "$3 ${vers[i]}" >> "$1"
done
}
# First argument is the file
# Second argument is the reference script
# Third argument is the command to be used on each version