Your script contains multiple syntax errors.
This is a fixed version:
#!/bin/bash
if [[ -z "$VER" ]]; then
echo "VER not provided; Deriving value from INT"
VER="$( ./get_ver.rb )"
fi
echo "VER=$VER" >VER
Notice the `;` before `then` and `fi` to end the `if`-statement.
To store the output of a command in a variable, use `$(...)` as above.
Use ShellCheck to check your shell scripts.