deprecated syntax.

do not use backticks as alias for $()
http://mywiki.wooledge.org/BashFAQ/082
pull/404/head
Paul Philippov 2022-08-24 19:03:40 -04:00
parent a6e8b5b3e1
commit ad4c11dd4c
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ self_update() {
echo -e "\nOnline upgrade, checking sysupgrade version..."
curl -s -k -L -o /tmp/sysupgrade "https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade"
if [ -f /tmp/sysupgrade ] && grep -q "#!/bin/sh" /tmp/sysupgrade; then
dstv=`grep scr_version /tmp/sysupgrade | head -1 | cut -f 2 -d '='`
dstv=$(grep scr_version /tmp/sysupgrade | head -1 | cut -f 2 -d '=')
if ! [ "${scr_version}" = "${dstv}" ]; then
echo "A new version is available, trying to activate updated script..."
chmod +x /tmp/sysupgrade