Do not add backup file with sed

At the moment it creates a build.txt= file. turns out busybox sed is a bit different.
This commit is contained in:
Wouter Wijsman
2024-06-17 09:21:28 +02:00
committed by GitHub
parent 8a697ac2de
commit 4c9766f256

View File

@@ -39,6 +39,6 @@ cd -
## Store build information ## Store build information
BUILD_FILE="${PSPDEV}/build.txt" BUILD_FILE="${PSPDEV}/build.txt"
if [[ -f "${BUILD_FILE}" ]]; then if [[ -f "${BUILD_FILE}" ]]; then
sed -i='' '/^pspsdk /d' "${BUILD_FILE}" sed -i'' '/^pspsdk /d' "${BUILD_FILE}"
fi fi
git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}" git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}"