Skip to content

Commit 6b91d16

Browse files
authored
mac and Linux compatible version to fetch latest Tasmota version
1 parent d26e341 commit 6b91d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if test -d "`pwd`/Tasmota"; then
2525
if [ "$USE_STABLE" = "1" ]; then
2626
if [ -z "${TASMOTA_BRANCH}" ]; then
2727
echo -e "Checking Tasmota GitHub for the most recent release version"
28-
TASMOTA_BRANCH=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+')
28+
TASMOTA_BRANCH=$(curl -s https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]+"' | cut -d'"' -f4)
2929
else
3030
echo -e "getting version \"${TASMOTA_BRANCH}\" from GitHub"
3131
fi

0 commit comments

Comments
 (0)