A common issue is that you are not using the same shell, for example on
Ubuntu by default is common to have installed *dash* as the default shell,
this causes troubles when you use *bash only features*. A good practice is
to set the first line to *"#!/bin/bash" *or *"#!/usr/bin/env bash"* and
Put this as the first line in your shell scripts:
#!/bin/bash -ex
-e exits the script immediately if a command exits with a non-zero status.
-x echos the current line in the script when it's executed.
My best guess is that an error occurs in your script, which is silently
ignored by Bash, but