Skip to content

Commit

Permalink
fixing error + online link
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sc committed Oct 17, 2019
1 parent 6112955 commit 36636b6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Converts bash scripts (`*.sh`) to windows batch files (`*.bat`).
This is _not_ supposed to be a fully complete/correct tool, but rather a starting point when converting scripts.
For simple scripts this might create correct results.

Try it online: https://daniel-sc.github.io/bash-shell-to-bat-converter/

## Usage
Setup:
```sh
Expand Down
2 changes: 1 addition & 1 deletion src/convert-bash.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
process = {env: {NODE_NEV: 'mock'}}; // patch for irrelevant node dependency of bash-parser
window.process = {env: {NODE_NEV: 'mock'}}; // patch for irrelevant node dependency of bash-parser
import parse from 'bash-parser'

function changePath(path: string) {
Expand Down
4 changes: 3 additions & 1 deletion ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@
},
"deploy": {
"builder": "angular-cli-ghpages:deploy",
"options": {}
"options": {
"baseHref": "/bash-shell-to-bat-converter/"
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1>Bash to Bat Converter</h1>

<div class="container">
<mat-form-field appearance="outline" floatLabel="always" class="code code-bash" color="primary">
<mat-label>Bash Script</mat-label>
Expand Down
4 changes: 3 additions & 1 deletion ui/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

h1 {
margin-left: 10px;
}
.container {
width: 100%;
display: flex;
Expand Down

0 comments on commit 36636b6

Please sign in to comment.