#!/bin/bash
# Deploy to a Aptible, https://www.aptible.com/
#
# Add the following environment variables to your project configuration and add
# the public SSH key from your projects General settings page to
# https://dashboard.aptible.com/settings/ssh
# * APTIBLE_APP
#
# Include in your builds via
# https://raw.githubusercontent.com/codeship/scripts/master/deployments/aptible.sh | bash -s
APTIBLE_APP=${APTIBLE_APP:?'You need to configure the APTIBLE_APP environment variable!'}
git push git@beta.aptible.com:${APTIBLE_APP}.git ${CI_COMMIT_ID}:master

#!/bin/sh
# Deploy to a Aptible, https://www.aptible.com/
#
# Add the following environment variables to your project configuration and add
# the public SSH key from your projects General settings page to
# https://dashboard.aptible.com/settings/ssh
# * APTIBLE_APP
#
# Include in your builds via
# https://raw.githubusercontent.com/codeship/scripts/master/deployments/aptible.sh | bash -s
${APTIBLE_APP:?'You need to configure the APTIBLE_APP environment variable!'}
git push git@beta.aptible.com:${APTIBLE_APP}.git ${CI_COMMIT_ID}:master

--- 
+++ 
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # Deploy to a Aptible, https://www.aptible.com/
 #
 # Add the following environment variables to your project configuration and add
@@ -8,5 +8,5 @@
 #
 # Include in your builds via
 # https://raw.githubusercontent.com/codeship/scripts/master/deployments/aptible.sh | bash -s
-APTIBLE_APP=${APTIBLE_APP:?'You need to configure the APTIBLE_APP environment variable!'}
+${APTIBLE_APP:?'You need to configure the APTIBLE_APP environment variable!'}
 git push git@beta.aptible.com:${APTIBLE_APP}.git ${CI_COMMIT_ID}:master
Fix the env variable check for Aptible deployments
