-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3eea0d
commit f9c9313
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/sh -e | ||
|
||
. ../common-script.sh | ||
|
||
installLinutil() { | ||
printf "%b\n" "${YELLOW}Installing Linutil...${RC}" | ||
case "$PACKAGER" in | ||
pacman) | ||
printf "%b\n" "----------------------------" | ||
printf "%b\n" "Select the package to install:" | ||
printf "%b\n" "1. ${CYAN}linutil${RC} (stable release compiled from source)" | ||
printf "%b\n" "2. ${CYAN}linutil-bin${RC} (stable release pre-compiled)" | ||
printf "%b\n" "3. ${CYAN}linutil-git${RC} (compiled from the latest commit)" | ||
printf "%b\n" "----------------------------" | ||
printf "%b\n" "Enter your choice: " | ||
read -r choice | ||
case $choice in | ||
1) "$AUR_HELPER" -S --noconfirm linutil ;; | ||
2) "$AUR_HELPER" -S --noconfirm linutil-bin ;; | ||
3) "$AUR_HELPER" -S --noconfirm linutil-git ;; | ||
*) | ||
printf "%b\n" "${RED}Invalid choice:${RC} $choice" | ||
exit 1 | ||
;; | ||
esac | ||
printf "%b\n" "${GREEN}Installed successfully.${RC}" | ||
;; | ||
*) | ||
printf "%b\n" "${RED}There are no official packages for your distro.${RC}" | ||
printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N) ${RC}" | ||
read -r choice | ||
case $choice in | ||
y|Y) | ||
printf "%b\n" "Work In Progress." | ||
;; | ||
*) printf "%b\n" "${RED}Linutil not installed.${RC}" ;; | ||
esac | ||
esac | ||
} | ||
|
||
checkEnv | ||
checkEscalationTool | ||
checkAURHelper | ||
installLinutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh -e | ||
|
||
. ../common-script.sh | ||
|
||
# WIP: crates have to be updated manually |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters