3
0
Fork 0
forked from mirrors/nixpkgs

vivaldi: Replace tabs with spaces in updater script

This commit is contained in:
Tim Steinbach 2019-04-06 13:12:20 -04:00
parent 55fa3c1180
commit e1ae597343
No known key found for this signature in database
GPG key ID: 6C654787275A64F1

View file

@ -8,15 +8,15 @@ root=../../../../..
export NIXPKGS_ALLOW_UNFREE=1
version() {
(cd "$root" && nix-instantiate --eval --strict -A "$1.version" | tr -d '"')
(cd "$root" && nix-instantiate --eval --strict -A "$1.version" | tr -d '"')
}
vivaldi_version_old=$(version vivaldi)
vivaldi_version=$(curl -sS https://vivaldi.com/download/ | sed -rne 's/.*vivaldi-stable_([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-[0-9]+)_amd64\.deb.*/\1/p')
if [[ "$vivaldi_version" = "$vivaldi_version_old" ]]; then
echo "nothing to do, vivaldi $vivaldi_version is current"
exit
echo "nothing to do, vivaldi $vivaldi_version is current"
exit
fi
# Download vivaldi and save hash and file path.
@ -34,6 +34,6 @@ chromium_version_old=$(version vivaldi-ffmpeg-codecs)
chromium_version=$(bsdtar xOf "$path" data.tar.xz | bsdtar xOf - ./opt/vivaldi/vivaldi-bin | strings | grep '^[0-9]\{2,\}\.[0-9]\+\.[0-9]\{4,\}\+\.[0-9]\+$')
if [[ "$chromium_version" != "$chromium_version_old" ]]; then
echo "vivaldi-ffmpeg-codecs: $chromium_version_old -> $chromium_version"
(cd "$root" && update-source-version vivaldi-ffmpeg-codecs "$chromium_version")
echo "vivaldi-ffmpeg-codecs: $chromium_version_old -> $chromium_version"
(cd "$root" && update-source-version vivaldi-ffmpeg-codecs "$chromium_version")
fi