diff --git a/newproject b/newproject index 8ebebbe..91fd37e 100755 --- a/newproject +++ b/newproject @@ -86,8 +86,9 @@ fi # Create a new C project. if [[ $LANG == "c" ]]; then - cp -r ~/templates/c ./$NAME # Copy the template C file. + mkdir $NAME cd $NAME + cp -r ~/templates/c/main.c . # Copy the template C file. mark; # Bookmark new project. # Create a new C# project with dotnet. diff --git a/run b/run index 1976855..1bbdf36 100755 --- a/run +++ b/run @@ -95,6 +95,8 @@ if [[ $TYPE == "c" ]]; then echo "Output..." ./a.out $ARGS + rm a.out + # Run C# app. elif [[ $TYPE == "cs" ]]; then clear