0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-02-02 07:00:42 +00:00
MarlinFirmware/buildroot/bin/opt_sed
Scott Lahteine 74ffa0cc3e 🧑‍💻 More compatible opt helpers
2024-09-23 19:50:07 -05:00

9 lines
174 B
Text
Executable file

# Detect sed version
SED_CMD="sed"
SED_I=(-i)
if command -v gsed >/dev/null 2>&1; then
SED_CMD="gsed"
elif [[ "$(uname)" == "Darwin" ]]; then
SED_I=(-i '')
BSDSED=1
fi