diff --git a/scripts/cloud-gov-remote-command.sh b/scripts/cloud-gov-remote-command.sh index c0d94729c..cb65ce49a 100755 --- a/scripts/cloud-gov-remote-command.sh +++ b/scripts/cloud-gov-remote-command.sh @@ -3,11 +3,11 @@ application=$1 command=$2 -PATH=/var/www/vendor/drush/drush/ +drush_path=/var/www/vendor/drush/drush/ [ -z "${application}" ] || [ -z "${command}" ] && echo "Command error! Valid format: ${0} " && exit 1 echo "Running command: '$(echo ${command} | cut -d' ' -f1,2)'..." { - cf ssh ${application} -c "PATH=\${PATH}:${PATH}; ${command}" + cf ssh ${application} -c "PATH=\${PATH}:${drush_path}; ${command}" } >/dev/null 2>&1 \ No newline at end of file