Skip to content

Commit

Permalink
Merge pull request #285 from jonasfien/master
Browse files Browse the repository at this point in the history
Windows compatability improvements
  • Loading branch information
andygrunwald authored Jan 12, 2025
2 parents fcfd231 + 674de66 commit d8a32ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.sh text eol=lf
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,6 @@ git update-index --chmod=+x compile.sh

Bei dem nächsten Push auf GitHub funktioniert das Skript dann, da es jetzt auf die Datei zugreifen kann.

### Fehlerbehandlung

Falls unter Windows der folgende Fehler auftritt, checkt `git` die Dateien mit Windows Line Endings aus. Dies verursacht im Ubuntu Container einen Fehler.

```
env: bash\r: No such file or directory
```

Mit dem folgenden Befehl kann man `git` dazu zwingen alle Dateien mit UNIX Zeilenendungen zu laden (siehe [stackoverflow](https://stackoverflow.com/questions/29045140/env-bash-r-no-such-file-or-directory)):

```
git config --global core.autocrlf true
```

#### Image selbst bauen

Wenn Du das Docker Image selbst bauen möchtest, kannst Du es mit dem nachfolgenden Befehl tun:
Expand Down
Binary file modified thesis_main.pdf
Binary file not shown.

0 comments on commit d8a32ad

Please sign in to comment.