diff --git a/Makefile b/Makefile index e952296..a63ada9 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,9 @@ format-doc: find . -iname "*.md" -exec sed -i -e 's_[[:space:]]*$$__' {} \; .PHONY: test -test: +test: nuget dotnet test -v normal --framework=net$(LATEST_SDK_VERSION) - ./scripts/run_snippests.sh + ./scripts/run_snippets.sh .PHONY: build build: diff --git a/scripts/run_snippet.sh b/scripts/run_snippet.sh old mode 100644 new mode 100755 index bcba53c..357cc43 --- a/scripts/run_snippet.sh +++ b/scripts/run_snippet.sh @@ -7,11 +7,10 @@ RUN_DIR=$2 SCRIPT_DIR=$3 CONFIG_FILE_PATH=$4 -rm $RUN_DIR/*.cs || true +rm "$RUN_DIR"/*.cs || true echo "Run snippet file: $FILE_PATH" -python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR - -dotnet run --project ./$RUN_DIR/Snippets.csproj || exit 1 +python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR" +dotnet run --project "./$RUN_DIR/Snippets.csproj" || exit 1 diff --git a/scripts/run_snippets.sh b/scripts/run_snippets.sh old mode 100644 new mode 100755