Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
[895#] fix/template csharp (#270)
Browse files Browse the repository at this point in the history
* Fix path of windows bin

Signed-off-by: maurineimirandazup <maurinei.miranda@zup.com.br>

* Fix Global Variables to Work on Docker

Signed-off-by: maurineimirandazup <maurinei.miranda@zup.com.br>
  • Loading branch information
maurineimirandazup authored Oct 8, 2020
1 parent f2465e0 commit c8e46dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/create_formula/languages/csharp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sh-unix:

bat-windows:
echo '@ECHO OFF' > $(BAT)
echo '$(BIN_FOLDER_WINDOWS)/$(BIN_WINDOWS)' >> $(BAT)
echo '%~dp0$(BIN_FOLDER_WINDOWS)/$(BIN_WINDOWS)' >> $(BAT)

docker:
cp Dockerfile set_umask.sh $(BIN_FOLDER)
8 changes: 4 additions & 4 deletions templates/create_formula/languages/csharp/src/main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ static class main
{
static void Main(string[] args)
{
string input1 = Environment.GetEnvironmentVariable("input_text");
string input2 = Environment.GetEnvironmentVariable("input_list");
string input3 = Environment.GetEnvironmentVariable("input_boolean");
string input4 = Environment.GetEnvironmentVariable("input_password");
string input1 = Environment.GetEnvironmentVariable("INPUT_TEXT");
string input2 = Environment.GetEnvironmentVariable("INPUT_LIST");
string input3 = Environment.GetEnvironmentVariable("INPUT_BOOLEAN");
string input4 = Environment.GetEnvironmentVariable("INPUT_PASSWORD");

new formula.Hello(input1, input2, input3, input4);
}
Expand Down

0 comments on commit c8e46dc

Please sign in to comment.