#!/bin/bash # This file is generated! Edit setup-script.bash instead. See README for more details. # http://redsymbol.net/articles/unofficial-bash-strict-mode/ set -euo pipefail IFS=$'\n\t' unameOut="$(uname -s)" case "${unameOut}" in Linux*) machine=Linux;; Darwin*) machine=Mac;; CYGWIN*) machine=Windows;; MINGW*) machine=Windows;; *) machine="UNKNOWN:${unameOut}" esac echo "Alloverse app setup wizard" echo "--------------------------" if [ -d "allo" ]; then echo "Project already initialized; use \`./allo/assist upgrade\` to fetch latest version." exit fi PROJNAME=`basename $(pwd)` read -p "Create new project '$PROJNAME'? (Y/n) " answer if [ "$answer" == "n" ] ; then echo "Exiting..." exit fi if [ ! -d ".git" ]; then echo "git init'ing" git init fi echo echo "EXTRACTING template app..." if [[ "$machine" == "Mac" ]] then baseargs="-D" else baseargs="-d" fi base64 $baseargs <