Commit 4e28363
committed
Remove trailing slash from $SRCDIR and check for required env vars
If $SRCDIR has a trailing slash (e.g., `kernel/`), the command
`cp -r "$SRCDIR" "${SRCDIR}.orig"` incorrectly copies the backup
*inside* the source directory instead of alongside it. This causes
the subsequent `diff -Nupr` to fail or compute an incorrect diff.
Also checks for the definitions of required env vars.1 parent bea635f commit 4e28363
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
0 commit comments