You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chrome-vnc-2/copyables/update

26 lines
535 B
Bash

#!/bin/bash
# set -e
if [ "$EUID" -ne 0 ]; then
echo '"update" needs root; use `--user=root` on `docker exec`'
exit -1
fi
apt-get update -qq \
-o Dir::Etc::sourcelist="sources.list.d/google-chrome.list" \
-o Dir::Etc::sourceparts="-" \
-o API::Get::List-Cleanup="0"
for pkg in "google-chrome-stable"; do
read -r -d '' _ iv _ cv _ <<< $(apt-cache policy $pkg | awk '{ print $2 }')
if [ "$iv" != "$cv" ]; then
apt-get install --only-upgrade -y -qq $pkg
echo $pkg upgraded to $cv
else
echo $pkg $iv is latest
fi
done