Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (15 sloc) 324 Bytes
#!/bin/bash
params=''
for i in "$@";do
params="$params \"${i//\"/\\\"}\""
done;
if [ -z "$WKV_SITE_ENV" ]; then
if ! vagrant status|grep default|grep -q running; then
echo "Vagrant is not up!"
exit 1
fi
vagrant ssh -c "cd /vagrant/drupal/current;drush $params"
else
cd drupal/current
drush $params
fi