#!/bin/bash
cd ~/FVCOM316/examples/inlet/run

The name of this script is say “cd_test.sh.” This script will not work with ./cdtest.sh. You need to source the file as:

$ . ./cd_test.sh