Skip to content

Commit

Permalink
restore test.
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-rapnicki-bixal committed Feb 27, 2024
1 parent 2bf49e3 commit acda5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cloud-gov-remote-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} <application_name> <command>" && 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

0 comments on commit acda5ca

Please sign in to comment.