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 { ...@@ -26,52 +26,49 @@ function create {
} }
EXISTING=$(ls -1) EXISTING=$(ls -1)
if [[ -n "$EXISTING" ]]; then if [[ ! -n "$EXISTING" ]]; then
restoreEnvFile echo "Lets start a new project here ..."
exit echo ""
fi echo "Options to start:"
echo " 1 LakeDrops Drupal 8 project template"
echo "Lets start a new project here ..." echo " 2 Drupal's community project template"
echo "" echo " 3 Existing git repository"
echo "Options to start:" echo ""
echo " 1 LakeDrops Drupal 8 project template" echo ""
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
1 ) while true; do
PROJECT="lakedrops/d8-project" read -p "Choose an option: " OPTION
create case ${OPTION} in
break
;;
2 ) 1 )
PROJECT="drupal-composer/drupal-project:8.x-dev" PROJECT="lakedrops/d8-project"
create create
break break
;; ;;
3 ) 2 )
read -p "Repository URL: " REPOSITORY PROJECT="drupal-composer/drupal-project:8.x-dev"
if [[ -n "${REPOSITORY}" ]]; then create
truncateCurrentDirectory
git clone ${REPOSITORY} .
composer update
restoreEnvFile
break 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." echo "Please try again."
;; ;;
esac esac
done done
fi
restoreEnvFile restoreEnvFile
/usr/bin/fish /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