You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drush 6 doesn't understand the --component=root flag in the command "drush site-alias @self --component=root". Therefore, to get around this, I modified my copy of scripts/libs/luggage.sh
I replaced the line:
DRUPALROOT=$(drush site-alias $ALIAS --component=root)
With:
DRUSHVERSION=$(drush --version --pipe)
if [[ $DRUSHVERSION == "5."* ]]
then
DRUPALROOT=$(drush site-alias $ALIAS --component=root)
elif [[ $DRUSHVERSION == "6."* ]]
then
DRUPALROOT=$(drush site-alias $ALIAS --format=csv --fields=root --field-labels=0)
else
echo "Unknown version of Drush" && exit 1
fi
This should work in both Drush 5.9.x, as well as 6.x. I've ran it a few times in 6.2.0. If you have a newer version of Drush, it will exit the script gracefully
The text was updated successfully, but these errors were encountered:
Drush 6 doesn't understand the --component=root flag in the command "drush site-alias @self --component=root". Therefore, to get around this, I modified my copy of scripts/libs/luggage.sh
I replaced the line:
DRUPALROOT=$(drush site-alias $ALIAS --component=root)
With:
DRUSHVERSION=$(drush --version --pipe)
if [[ $DRUSHVERSION == "5."* ]]
then
DRUPALROOT=$(drush site-alias $ALIAS --component=root)
elif [[ $DRUSHVERSION == "6."* ]]
then
DRUPALROOT=$(drush site-alias $ALIAS --format=csv --fields=root --field-labels=0)
else
echo "Unknown version of Drush" && exit 1
fi
This should work in both Drush 5.9.x, as well as 6.x. I've ran it a few times in 6.2.0. If you have a newer version of Drush, it will exit the script gracefully
The text was updated successfully, but these errors were encountered: