Add a message for if inital configure-stormux gets interrupted.

This commit is contained in:
Storm Dragon 2024-03-12 17:14:32 -04:00
parent aa4ec62c47
commit 50d9099231

View File

@ -7,7 +7,16 @@ if [[ -x /etc/audibleprompt.sh ]]; then
export sudoFlags=("-A")
fi
trap 'popd &> /dev/null' EXIT
trap cleanup EXIT
cleanup() {
popd &> /dev/null
if ! [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
echo "Initial setup is not complete."
echo "To continue setup, please run:"
echo "sudo configure-stormux"
fi
}
if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
pushd /opt/configure-stormux