From 326db6990a70b47b2013e050645dc640430d7033 Mon Sep 17 00:00:00 2001 From: Joel Santos Date: Sun, 18 Nov 2018 15:33:08 +0000 Subject: [PATCH] [fix] Initializer usage --- README.md | 2 +- init.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6251b13..0a8f129 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ crate. ## For a fast initialization start ```sh -curl https://raw.githubusercontent.com/rust-console/gba/master/init.sh -sSf | sh +curl https://raw.githubusercontent.com/rust-console/gba/master/init.sh -sSf | sh APP_NAME ``` # Contribution diff --git a/init.sh b/init.sh index b7b6a9e..6de95fe 100644 --- a/init.sh +++ b/init.sh @@ -1,11 +1,11 @@ #!/bin/sh -echo -n "Type the name of the application / game, followed by [ENTER]: " -read APP_NAME - +APP_NAME=$1 TARGET="thumbv4-none-agb" CRT_LOCAL="crt0.s" +echo "Initializing rust-console gba at: $1" + # initialize cargo cargo init $APP_NAME --bin