We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d26e341 commit 6b91d16Copy full SHA for 6b91d16
compile.sh
@@ -25,7 +25,7 @@ if test -d "`pwd`/Tasmota"; then
25
if [ "$USE_STABLE" = "1" ]; then
26
if [ -z "${TASMOTA_BRANCH}" ]; then
27
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[^"]+')
+ TASMOTA_BRANCH=$(curl -s https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]+"' | cut -d'"' -f4)
29
else
30
echo -e "getting version \"${TASMOTA_BRANCH}\" from GitHub"
31
fi
0 commit comments