Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Apr 12, 2011
1 parent 7d96e92 commit bb5d324
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions newapp.sh
Expand Up @@ -13,18 +13,22 @@
# Default
DEFAULT_APP_PATH="$HOME/koapp"

echo $DEFAULT_APP_PATH

# Request application name
echo "Please provide a path in which to install your new Kohana application: "
read CUSTOM_APP_PATH

# Set app path
if [ -n "$CUSTOM_APP_PATH" ];
if [ -n "$1" ];
then
APP_NAME="$CUSTOM_APP_PATH"
# Use first arg as application path
APP_NAME="$1"
else
APP_NAME="$DEFAULT_APP_PATH"
# Request application name
echo "Please provide a path in which to install your new Kohana application: "
read CUSTOM_APP_PATH

# Set app path
if [ -n "$CUSTOM_APP_PATH" ];
then
APP_NAME="$CUSTOM_APP_PATH"
else
APP_NAME="$DEFAULT_APP_PATH"
fi
fi

# Using app name
Expand Down

0 comments on commit bb5d324

Please sign in to comment.