mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
chore: update scripts, add common-service-script to shellcheckrc
This commit is contained in:
parent
6c7ded0061
commit
9ed6fd5635
|
@ -1,2 +1,3 @@
|
||||||
external-sources=true
|
external-sources=true
|
||||||
source=core/tabs/common-script.sh
|
source=core/tabs/common-script.sh
|
||||||
|
source=core/tabs/common-service-script.sh
|
|
@ -3,7 +3,7 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
installLibreWolf() {
|
installLibreWolf() {
|
||||||
if ! command_exists librewolf; then
|
if ! command_exists io.gitlab.librewolf-community && ! command_exists librewolf; then
|
||||||
printf "%b\n" "${YELLOW}Installing Librewolf...${RC}"
|
printf "%b\n" "${YELLOW}Installing Librewolf...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
apt-get|nala)
|
apt-get|nala)
|
||||||
|
@ -33,12 +33,8 @@ Signed-By: /usr/share/keyrings/librewolf.gpg" | "$ESCALATION_TOOL" tee /etc/apt/
|
||||||
"$AUR_HELPER" -S --needed --noconfirm librewolf-bin
|
"$AUR_HELPER" -S --needed --noconfirm librewolf-bin
|
||||||
;;
|
;;
|
||||||
apk)
|
apk)
|
||||||
alpine_version=$(grep . /etc/alpine-release | cut -d . -f 2)
|
checkFlatpak
|
||||||
if [ "$alpine_version" -le 20 ]; then
|
flatpak install flathub io.gitlab.librewolf-community
|
||||||
printf "%b\n" "${RED}Only available in edge release of alpine linux${RC}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add librewolf
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
installWaterfox() {
|
installWaterfox() {
|
||||||
if ! command_exists waterfox; then
|
if ! command_exists net.waterfox.waterfox && ! command_exists waterfox; then
|
||||||
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
"$AUR_HELPER" -S --needed --noconfirm waterfox-bin
|
"$AUR_HELPER" -S --needed --noconfirm waterfox-bin
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
. ../setup-flatpak.sh
|
checkFlatpak
|
||||||
flatpak install -y flathub net.waterfox.waterfox
|
flatpak install -y flathub net.waterfox.waterfox
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
installJitsi() {
|
installJitsi() {
|
||||||
if ! command_exists jitsi-meet; then
|
if ! command_exists org.jitsi.jitsi-meet && ! command_exists jitsi-meet; then
|
||||||
printf "%b\n" "${YELLOW}Installing Jitsi meet...${RC}"
|
printf "%b\n" "${YELLOW}Installing Jitsi meet...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
apt-get|nala)
|
apt-get|nala)
|
||||||
|
@ -21,6 +21,10 @@ installJitsi() {
|
||||||
dnf)
|
dnf)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y jitsi-meet
|
"$ESCALATION_TOOL" "$PACKAGER" install -y jitsi-meet
|
||||||
;;
|
;;
|
||||||
|
apk)
|
||||||
|
checkFlatpak
|
||||||
|
flatpak install flathub org.jitsi.jitsi-meet
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -49,7 +49,8 @@ installLinutil() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add build-base
|
"$ESCALATION_TOOL" "$PACKAGER" add build-base
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add rustup
|
"$ESCALATION_TOOL" "$PACKAGER" add rustup
|
||||||
rustup-init
|
rustup-init
|
||||||
. $HOME/.cargo/env
|
# shellcheck disable=SC1091
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
|
|
@ -23,6 +23,8 @@ updateLinutil() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add build-base
|
"$ESCALATION_TOOL" "$PACKAGER" add build-base
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add rustup
|
"$ESCALATION_TOOL" "$PACKAGER" add rustup
|
||||||
rustup-init
|
rustup-init
|
||||||
|
# shellcheck disable=SC1091
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y rustup
|
"$ESCALATION_TOOL" "$PACKAGER" install -y rustup
|
||||||
|
|
|
@ -17,14 +17,6 @@ install_theme_tools() {
|
||||||
pacman)
|
pacman)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm qt6ct kvantum
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm qt6ct kvantum
|
||||||
;;
|
;;
|
||||||
apk)
|
|
||||||
alpine_version=$(grep . /etc/alpine-release | cut -d . -f 2)
|
|
||||||
if [ "$alpine_version" -le 20 ]; then
|
|
||||||
printf "%b\n" "${RED}Only available in edge release of alpine linux${RC}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add qt6ct kvantum
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -78,7 +78,6 @@ updateSystem() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive dup
|
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive dup
|
||||||
;;
|
;;
|
||||||
apk)
|
apk)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" update
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" upgrade
|
"$ESCALATION_TOOL" "$PACKAGER" upgrade
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -12,6 +12,7 @@ list_devices() {
|
||||||
printf "\n"
|
printf "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
installDependencies() {
|
installDependencies() {
|
||||||
DEPENDENCIES="xz gzip bzip2 jq"
|
DEPENDENCIES="xz gzip bzip2 jq"
|
||||||
if ! command_exists ${DEPENDENCIES}; then
|
if ! command_exists ${DEPENDENCIES}; then
|
||||||
|
@ -23,6 +24,8 @@ installDependencies() {
|
||||||
"${ESCALATION_TOOL}" "${PACKAGER}" install -y ${DEPENDENCIES};;
|
"${ESCALATION_TOOL}" "${PACKAGER}" install -y ${DEPENDENCIES};;
|
||||||
pacman)
|
pacman)
|
||||||
"${ESCALATION_TOOL}" "${PACKAGER}" -S --noconfirm --needed ${DEPENDENCIES};;
|
"${ESCALATION_TOOL}" "${PACKAGER}" -S --noconfirm --needed ${DEPENDENCIES};;
|
||||||
|
apk)
|
||||||
|
"${ESCALATION_TOOL}" "${PACKAGER}" add ${DEPENDENCIES};;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager.${RC}"
|
printf "%b\n" "${RED}Unsupported package manager.${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -12,7 +12,7 @@ install_package() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$PACKAGE"
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$PACKAGE"
|
||||||
;;
|
;;
|
||||||
apk)
|
apk)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" add $PACKAGE
|
"$ESCALATION_TOOL" "$PACKAGER" add "$PACKAGE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y "$PACKAGE"
|
"$ESCALATION_TOOL" "$PACKAGER" install -y "$PACKAGE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user