Created
September 3, 2018 12:47
-
-
Save davialexandre/d9a93788d531629cf7168bbf445566d4 to your computer and use it in GitHub Desktop.
civibuildcd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function civibuildcd { | |
DEST=$(civibuild show $1 | grep -o -e "CMS_ROOT: .*" | cut -d' ' -f 2) | |
if [ -d "$DEST" ]; then | |
cd $DEST | |
else | |
echo "No folder found for $1" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment