Created
February 16, 2023 15:00
-
-
Save maximianodev/3c5d74004260c0d6e7772c9b344584f3 to your computer and use it in GitHub Desktop.
BASH - VTEX Workspace and Git automatization.
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
# Paste on ~/ | |
# Run with bash ~./automatization.sh | |
#! usr/bin/bash | |
bold=$(tput bold) | |
echo "🌌 ${bold}VTEX: Workspace ?" | |
read workspace | |
echo "🌌 ${bold}GIT: Branch ?" | |
read git_branch | |
if [ -z "$workspace" ] | |
then | |
echo "" | |
else | |
vtex use $workspace | |
fi | |
if [ -z "$git_branch" ] | |
then | |
echo "" | |
else | |
git checkout -b $git_branch | |
fi | |
echo $workspace | |
echo $git_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment