1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

github: fixed grep arg for RC builds (#3093)

* github: fixed grep arg for RC builds
* scripts: fbt: checking for .git existence, not for it being a dir

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2023-09-21 12:44:55 +03:00
committed by GitHub
parent a73a83f04d
commit b80dfbe0c5
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ runs:
echo "API version is already released"
exit 0
fi
if ! echo "${{ inputs.firmware-version }}" | grep -q "-rc" ; then
if ! echo "${{ inputs.firmware-version }}" | grep -q -- "-rc" ; then
SDK_ID=$(jq -r ._id found_sdk.json)
echo "Marking SDK $SDK_ID as released"
curl -X 'POST' \

2
fbt
View File

@@ -25,7 +25,7 @@ if [ -z "$FBT_VERBOSE" ]; then
fi
if [ -z "$FBT_NO_SYNC" ]; then
if [ ! -d "$SCRIPT_PATH/.git" ]; then
if [ ! -e "$SCRIPT_PATH/.git" ]; then
echo "\".git\" directory not found, please clone repo via \"git clone\"";
exit 1;
fi