Skip to content
Snippets Groups Projects
Commit 6674889e authored by jurgenhaas's avatar jurgenhaas
Browse files

#15 Rename the start script in the repository but keep the name in the container

parent 0b75d92e
No related branches found
No related tags found
No related merge requests found
......@@ -26,52 +26,49 @@ function create {
}
EXISTING=$(ls -1)
if [[ -n "$EXISTING" ]]; then
restoreEnvFile
exit
fi
echo "Lets start a new project here ..."
echo ""
echo "Options to start:"
echo " 1 LakeDrops Drupal 8 project template"
echo " 2 Drupal's community project template"
echo " 3 Existing git repository"
echo ""
echo ""
while true; do
read -p "Choose an option: " OPTION
case ${OPTION} in
if [[ ! -n "$EXISTING" ]]; then
echo "Lets start a new project here ..."
echo ""
echo "Options to start:"
echo " 1 LakeDrops Drupal 8 project template"
echo " 2 Drupal's community project template"
echo " 3 Existing git repository"
echo ""
echo ""
1 )
PROJECT="lakedrops/d8-project"
create
break
;;
while true; do
read -p "Choose an option: " OPTION
case ${OPTION} in
2 )
PROJECT="drupal-composer/drupal-project:8.x-dev"
create
break
;;
1 )
PROJECT="lakedrops/d8-project"
create
break
;;
3 )
read -p "Repository URL: " REPOSITORY
if [[ -n "${REPOSITORY}" ]]; then
truncateCurrentDirectory
git clone ${REPOSITORY} .
composer update
restoreEnvFile
2 )
PROJECT="drupal-composer/drupal-project:8.x-dev"
create
break
fi
;;
;;
3 )
read -p "Repository URL: " REPOSITORY
if [[ -n "${REPOSITORY}" ]]; then
truncateCurrentDirectory
git clone ${REPOSITORY} .
composer update
restoreEnvFile
break
fi
;;
* )
echo "Please try again."
;;
esac
done
* )
echo "Please try again."
;;
esac
done
fi
restoreEnvFile
/usr/bin/fish
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment