Skip to content

Commit 6dfd514

Browse files
add flag --allow-root
1 parent c997a3d commit 6dfd514

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+471
-454
lines changed

core/tabs/applications-setup/Developer-tools/githubdesktop-setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ installGithubDesktop() {
77
printf "%b\n" "${YELLOW}Installing Github Desktop...${RC}"
88
case "$PACKAGER" in
99
apt-get|nala)
10-
curl -fsSL https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | "$ESCALATION_TOOL" tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null
11-
printf "%b\n" 'deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main\n' | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/shiftkey-packages.list > /dev/null
12-
"$ESCALATION_TOOL" "$PACKAGER" update
13-
"$ESCALATION_TOOL" "$PACKAGER" install -y github-desktop
10+
curl -fsSL https://apt.packages.shiftkey.dev/gpg.key | gpg --dearmor | elevated_execution tee /usr/share/keyrings/shiftkey-packages.gpg > /dev/null
11+
printf "%b\n" 'deb [arch=amd64 signed-by=/usr/share/keyrings/shiftkey-packages.gpg] https://apt.packages.shiftkey.dev/ubuntu/ any main\n' | elevated_execution tee /etc/apt/sources.list.d/shiftkey-packages.list > /dev/null
12+
elevated_execution "$PACKAGER" update
13+
elevated_execution "$PACKAGER" install -y github-desktop
1414
;;
1515
zypper)
16-
"$ESCALATION_TOOL" rpm --import https://rpm.packages.shiftkey.dev/gpg.key
17-
printf "%b\n" '[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://rpm.packages.shiftkey.dev/rpm/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://rpm.packages.shiftkey.dev/gpg.key\n' | "$ESCALATION_TOOL" tee /etc/zypp/repos.d/shiftkey-packages.repo > /dev/null
18-
"$ESCALATION_TOOL" "$PACKAGER" refresh
19-
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install github-desktop
16+
elevated_execution rpm --import https://rpm.packages.shiftkey.dev/gpg.key
17+
printf "%b\n" '[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://rpm.packages.shiftkey.dev/rpm/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://rpm.packages.shiftkey.dev/gpg.key\n' | elevated_execution tee /etc/zypp/repos.d/shiftkey-packages.repo > /dev/null
18+
elevated_execution "$PACKAGER" refresh
19+
elevated_execution "$PACKAGER" --non-interactive install github-desktop
2020
;;
2121
pacman)
2222
"$AUR_HELPER" -S --needed --noconfirm github-desktop-bin
2323
;;
2424
dnf)
25-
"$ESCALATION_TOOL" rpm --import https://rpm.packages.shiftkey.dev/gpg.key
26-
printf "%b\n" '[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://rpm.packages.shiftkey.dev/rpm/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://rpm.packages.shiftkey.dev/gpg.key\n' | "$ESCALATION_TOOL" tee /etc/yum.repos.d/shiftkey-packages.repo > /dev/null
27-
"$ESCALATION_TOOL" "$PACKAGER" install -y github-desktop
25+
elevated_execution rpm --import https://rpm.packages.shiftkey.dev/gpg.key
26+
printf "%b\n" '[shiftkey-packages]\nname=GitHub Desktop\nbaseurl=https://rpm.packages.shiftkey.dev/rpm/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://rpm.packages.shiftkey.dev/gpg.key\n' | elevated_execution tee /etc/yum.repos.d/shiftkey-packages.repo > /dev/null
27+
elevated_execution "$PACKAGER" install -y github-desktop
2828
;;
2929
*)
3030
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"

core/tabs/applications-setup/Developer-tools/meld-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ installMeld() {
77
printf "%b\n" "${YELLOW}Installing Meld...${RC}"
88
case "$PACKAGER" in
99
pacman)
10-
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm meld
10+
elevated_execution "$PACKAGER" -S --needed --noconfirm meld
1111
;;
1212
apt-get|nala)
13-
"$ESCALATION_TOOL" "$PACKAGER" -y install meld
13+
elevated_execution "$PACKAGER" -y install meld
1414
;;
1515
*)
1616
. ../setup-flatpak.sh

core/tabs/applications-setup/Developer-tools/neovim-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ installNeovim() {
1818
printf "%b\n" "${YELLOW}Installing Neovim...${RC}"
1919
case "$PACKAGER" in
2020
pacman)
21-
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck git
21+
elevated_execution "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck git
2222
;;
2323
apt-get|nala)
24-
"$ESCALATION_TOOL" "$PACKAGER" install -y ripgrep fd-find python3-venv luarocks golang-go shellcheck git
24+
elevated_execution "$PACKAGER" install -y ripgrep fd-find python3-venv luarocks golang-go shellcheck git
2525
curl -sSLo /tmp/nvim.appimage https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
2626
chmod u+x /tmp/nvim.appimage
27-
"$ESCALATION_TOOL" mv /tmp/nvim.appimage /usr/local/bin/nvim
27+
elevated_execution mv /tmp/nvim.appimage /usr/local/bin/nvim
2828
;;
2929
dnf|zypper)
30-
"$ESCALATION_TOOL" "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git
30+
elevated_execution "$PACKAGER" install -y neovim ripgrep fzf python3-virtualenv luarocks golang ShellCheck git
3131
;;
3232
*)
3333
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"

core/tabs/applications-setup/Developer-tools/ngrok-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
installNgrok() {
66
if ! command_exists ngrok; then
77
printf "%b\n" "${YELLOW}Installing Ngrok...${RC}"
8-
curl -sSLO https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | "$ESCALATION_TOOL" tar -xz -C /usr/local/bin
8+
curl -sSLO https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | elevated_execution tar -xz -C /usr/local/bin
99
else
1010
printf "%b\n" "${GREEN}Ngrok is already installed.${RC}"
1111
fi

core/tabs/applications-setup/Developer-tools/sublime-setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ installSublime() {
77
printf "%b\n" "${YELLOW}Installing Sublime...${RC}"
88
case "$PACKAGER" in
99
apt-get|nala)
10-
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | "$ESCALATION_TOOL" apt-key add -
11-
echo "deb https://download.sublimetext.com/ apt/stable/" | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/sublime-text.list
12-
"$ESCALATION_TOOL" "$PACKAGER" update
13-
"$ESCALATION_TOOL" "$PACKAGER" install -y sublime-text
10+
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | elevated_execution apt-key add -
11+
echo "deb https://download.sublimetext.com/ apt/stable/" | elevated_execution tee /etc/apt/sources.list.d/sublime-text.list
12+
elevated_execution "$PACKAGER" update
13+
elevated_execution "$PACKAGER" install -y sublime-text
1414
;;
1515
zypper)
16-
"$ESCALATION_TOOL" rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
17-
"$ESCALATION_TOOL" "$PACKAGER" addrepo -g -f https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
18-
"$ESCALATION_TOOL" "$PACKAGER" refresh
19-
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install sublime-text
16+
elevated_execution rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
17+
elevated_execution "$PACKAGER" addrepo -g -f https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo
18+
elevated_execution "$PACKAGER" refresh
19+
elevated_execution "$PACKAGER" --non-interactive install sublime-text
2020
;;
2121
pacman)
2222
"$AUR_HELPER" -S --needed --noconfirm sublime-text-4
2323
;;
2424
dnf)
25-
"$ESCALATION_TOOL" rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
26-
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
27-
"$ESCALATION_TOOL" "$PACKAGER" install -y sublime-text
25+
elevated_execution rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
26+
elevated_execution "$PACKAGER" config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
27+
elevated_execution "$PACKAGER" install -y sublime-text
2828
;;
2929
*)
3030
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"

core/tabs/applications-setup/Developer-tools/vscode-setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ installVsCode() {
88
case "$PACKAGER" in
99
apt-get|nala)
1010
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
11-
"$ESCALATION_TOOL" install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
12-
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/vscode.list > /dev/null
11+
elevated_execution install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
12+
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | elevated_execution tee /etc/apt/sources.list.d/vscode.list > /dev/null
1313
rm -f packages.microsoft.gpg
14-
"$ESCALATION_TOOL" "$PACKAGER" update
15-
"$ESCALATION_TOOL" "$PACKAGER" install -y apt-transport-https code
14+
elevated_execution "$PACKAGER" update
15+
elevated_execution "$PACKAGER" install -y apt-transport-https code
1616
;;
1717
zypper)
18-
"$ESCALATION_TOOL" rpm --import https://packages.microsoft.com/keys/microsoft.asc
19-
printf "%b\n" '[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc' | "$ESCALATION_TOOL" tee /etc/zypp/repos.d/vscode.repo > /dev/null
20-
"$ESCALATION_TOOL" "$PACKAGER" refresh
21-
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install code
18+
elevated_execution rpm --import https://packages.microsoft.com/keys/microsoft.asc
19+
printf "%b\n" '[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc' | elevated_execution tee /etc/zypp/repos.d/vscode.repo > /dev/null
20+
elevated_execution "$PACKAGER" refresh
21+
elevated_execution "$PACKAGER" --non-interactive install code
2222
;;
2323
pacman)
2424
"$AUR_HELPER" -S --needed --noconfirm visual-studio-code-bin
2525
;;
2626
dnf)
27-
"$ESCALATION_TOOL" rpm --import https://packages.microsoft.com/keys/microsoft.asc
28-
printf "%b\n" '[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc' | "$ESCALATION_TOOL" tee /etc/yum.repos.d/vscode.repo > /dev/null
29-
"$ESCALATION_TOOL" "$PACKAGER" install -y code
27+
elevated_execution rpm --import https://packages.microsoft.com/keys/microsoft.asc
28+
printf "%b\n" '[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc' | elevated_execution tee /etc/yum.repos.d/vscode.repo > /dev/null
29+
elevated_execution "$PACKAGER" install -y code
3030
;;
3131
*)
3232
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"

core/tabs/applications-setup/Developer-tools/vscodium-setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ installVsCodium() {
77
printf "%b\n" "${YELLOW}Installing VS Codium...${RC}"
88
case "$PACKAGER" in
99
apt-get|nala)
10-
curl -fsSL https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | "$ESCALATION_TOOL" dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
11-
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/vscodium.list
12-
"$ESCALATION_TOOL" "$PACKAGER" update
13-
"$ESCALATION_TOOL" "$PACKAGER" install -y codium
10+
curl -fsSL https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | elevated_execution dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
11+
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | elevated_execution tee /etc/apt/sources.list.d/vscodium.list
12+
elevated_execution "$PACKAGER" update
13+
elevated_execution "$PACKAGER" install -y codium
1414
;;
1515
zypper)
16-
"$ESCALATION_TOOL" rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
17-
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=gitlab.com_paulcarroty_vscodium_repo\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | "$ESCALATION_TOOL" tee -a /etc/zypp/repos.d/vscodium.repo
18-
"$ESCALATION_TOOL" "$PACKAGER" refresh
19-
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install codium
16+
elevated_execution rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
17+
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=gitlab.com_paulcarroty_vscodium_repo\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | elevated_execution tee -a /etc/zypp/repos.d/vscodium.repo
18+
elevated_execution "$PACKAGER" refresh
19+
elevated_execution "$PACKAGER" --non-interactive install codium
2020
;;
2121
pacman)
2222
"$AUR_HELPER" -S --noconfirm vscodium-bin
2323
;;
2424
dnf)
25-
"$ESCALATION_TOOL" rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
26-
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | "$ESCALATION_TOOL" tee -a /etc/yum.repos.d/vscodium.repo
27-
"$ESCALATION_TOOL" "$PACKAGER" install -y codium
25+
elevated_execution rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
26+
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | elevated_execution tee -a /etc/yum.repos.d/vscodium.repo
27+
elevated_execution "$PACKAGER" install -y codium
2828
;;
2929
*)
3030
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"

core/tabs/applications-setup/alacritty-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ installAlacritty() {
77
printf "%b\n" "${YELLOW}Installing Alacritty...${RC}"
88
case "$PACKAGER" in
99
pacman)
10-
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm alacritty
10+
elevated_execution "$PACKAGER" -S --needed --noconfirm alacritty
1111
;;
1212
*)
13-
"$ESCALATION_TOOL" "$PACKAGER" install -y alacritty
13+
elevated_execution "$PACKAGER" install -y alacritty
1414
;;
1515
esac
1616
else

core/tabs/applications-setup/android-debloat.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ install_adb() {
77
printf "%b\n" "${YELLOW}Installing ADB...${RC}."
88
case "$PACKAGER" in
99
apt-get|nala)
10-
"$ESCALATION_TOOL" "$PACKAGER" install -y android-sdk-platform-tools
10+
elevated_execution "$PACKAGER" install -y android-sdk-platform-tools
1111
;;
1212
pacman)
13-
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm android-tools
13+
elevated_execution "$PACKAGER" -S --noconfirm android-tools
1414
;;
1515
dnf|zypper)
16-
"$ESCALATION_TOOL" "$PACKAGER" install -y android-tools
16+
elevated_execution "$PACKAGER" install -y android-tools
1717
;;
1818
*)
1919
printf "%b\n" "${RED}Unsupported package manager: "$PACKAGER"${RC}"
@@ -29,8 +29,8 @@ install_universal_android_debloater() {
2929
if ! command_exists uad; then
3030
printf "%b\n" "${YELLOW}Installing Universal Android Debloater...${RC}."
3131
curl -sSLo "${HOME}/uad" "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/releases/download/v1.1.0/uad-ng-linux"
32-
"$ESCALATION_TOOL" chmod +x "${HOME}/uad"
33-
"$ESCALATION_TOOL" mv "${HOME}/uad" /usr/local/bin/uad
32+
elevated_execution chmod +x "${HOME}/uad"
33+
elevated_execution mv "${HOME}/uad" /usr/local/bin/uad
3434
else
3535
printf "%b\n" "${GREEN}Universal Android Debloater is already installed. Run 'uad' command to execute.${RC}"
3636
fi

0 commit comments

Comments
 (0)