Add Version to update.sh for Darwin
Changes: * Add version to update.sh for Darwin
This commit is contained in:
parent
653ee79a67
commit
f3e4386480
5 changed files with 18 additions and 6 deletions
|
@ -120,12 +120,16 @@ elif [ "$KERNEL" = "Darwin" ] ; then
|
|||
gsub(/^.*Title: /, "", line);
|
||||
gsub(/, Version:.*$/, "", line);
|
||||
PACKAGE="package=\"" line "\""
|
||||
version = $0;
|
||||
gsub(/^.*Title: [^,]+, Version: /, "", version);
|
||||
gsub(/, Size:.*$/, "", version);
|
||||
VERSION="latest_package_version=\"" version "\""
|
||||
RECOMMENDED=""
|
||||
RESTART=""
|
||||
TOTAL=TOTAL+1
|
||||
if ( $0 ~ /Recommended: YES/ ) { RECOMMENDED="is_recommended=\"true\"" }
|
||||
if ( $0 ~ /Action: restart/ ) { RESTART="restart_required=\"true\"" }
|
||||
printf "%s %s %s %s\n", DATE, PACKAGE, RECOMMENDED, RESTART
|
||||
printf "%s %s %s %s\n", DATE, PACKAGE, VERSION, RECOMMENDED, RESTART
|
||||
}
|
||||
}'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue