-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser.sh
45 lines (38 loc) · 1.39 KB
/
browser.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
44
45
#!/bin/bash
#
# browser.sh - part of the Arch-Setup project
# Copyright (C) 2023-2025, JustScott, [email protected]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Increase Librewolf search bar and tab size:
# about:config -> devp -> layout.css.devPixelsPerPx=1.25
#
if [[ $(basename $PWD) != "Arch-Setup" ]]
then
printf "\e[31m%s\e[0m\n" \
"[Error] Please run script from the Arch-Setup base directory"
exit 1
fi
source ./shared_lib
bash secure.sh
bash aur.sh
sudo -v
packages=(librewolf-bin)
if ! yay -Q ${packages[@]} &>/dev/null; then
yay -Sy ${packages[@]} --noconfirm >>"$STDOUT_LOG_PATH" 2>>"$STDERR_LOG_PATH" &
task_output $! "$STDERR_LOG_PATH" \
"Download and install librewolf binary from the AUR (this may take a while)"
[[ $? -ne 0 ]] && exit 1
fi