Commit f3a8513
Fix Unix mountpoints code to be POSIX sh-compatible.
The previous Unix mountpoints code used bash-specific features (here-string `<<<` and `read -ra` for arrays) which caused errors when Dockerfile uses `/bin/sh` instead of bash.
Changed to POSIX-compliant syntax:
- Use `set -- $MOUNTPOINTS` to split colon-separated paths into positional parameters
- Use `$@` to iterate instead of bash arrays
- Save/restore IFS properly
- Works with `/bin/sh`, dash, and other minimal shells
Error fixed:
- `/bin/sh: 1: Syntax error: redirection unexpected`
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8099fe6 commit f3a8513
File tree
2 files changed
+12
-6
lines changed- src/PostSharp.Engineering.BuildTools/Resources
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
953 | 956 | | |
954 | 957 | | |
955 | 958 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
953 | 956 | | |
954 | 957 | | |
955 | 958 | | |
| |||
0 commit comments