forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
browsers.sh
executable file
·43 lines (26 loc) · 1.19 KB
/
browsers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Browsers\n\n"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "google-chrome-unstable"; then
add_key "https://dl-ssl.google.com/linux/linux_signing_key.pub" \
|| print_error "Chrome Canary (add key)"
add_to_source_list "[arch=amd64] https://dl.google.com/linux/deb/ stable main" "google-chrome.list" \
|| print_error "Chrome Canary (add to package resource list)"
update &> /dev/null \
|| print_error "Chrome Canary (resync package index files)"
fi
install_package "Chrome Canary" "google-chrome-unstable"
install_package "Chromium" "chromium-browser"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
printf "\n"
if ! package_is_installed "firefox-trunk"; then
add_ppa "ubuntu-mozilla-daily/ppa" \
|| print_error "Firefox Nightly (add PPA)"
update &> /dev/null \
|| print_error "Firefox Nightly (resync package index files)"
fi
install_package "Firefox Nightly" "firefox-trunk"