!/bin/bash


readonly VRR="$1/vrr"
echo "VRR is at $VRR"
echo "cli args $@"

main () {
    # First run of inpmod, stamod, vivana
    "$VRR" isv fivben || exit 1
    # Move results file to match prefix for second run
    mv fivben_ifninp.sam fivben2_ifninp.sam || exit 11
    # Second, updated run of stamod
    "$VRR" s fivben2 || exit 2
}


# The only global command is to start the main function
main

exit 0
