mirror of
https://github.com/keylase/nvidia-patch.git
synced 2025-08-20 21:33:11 -07:00
Merge pull request #76 from Snawoot/crlf_guard
Guard from CRLF newlines
This commit is contained in:
commit
780cfa3d3a
1 changed files with 4 additions and 2 deletions
6
patch.sh
6
patch.sh
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# halt on any error for safety and proper pipe handling
|
||||||
set -euo pipefail
|
set -euo pipefail ; # <- this semicolon and comment make options apply
|
||||||
|
# even when script is corrupt by CRLF line terminators (issue #75)
|
||||||
|
# empty line must follow this comment for immediate fail with CRLF newlines
|
||||||
|
|
||||||
backup_path="/opt/nvidia/libnvidia-encode-backup"
|
backup_path="/opt/nvidia/libnvidia-encode-backup"
|
||||||
silent_flag=''
|
silent_flag=''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue