-
Notifications
You must be signed in to change notification settings - Fork 409
[Feature]: Shelly GUI Package Management #1308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
technicks89
wants to merge
31
commits into
ChrisTitusTech:main
Choose a base branch
from
technicks89:shelly
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
0a34ce5
Mirrored gaming changes
technicks89 2ba2fc8
Merge branch 'main' of https://github.com/namato1/linutil
technicks89 662e485
Merge branch 'ChrisTitusTech:main' into main
technicks89 57c4d25
Merge branch 'ChrisTitusTech:main' into main
technicks89 8c6bd52
Merge branch 'ChrisTitusTech:main' into main
technicks89 53959f8
Merge branch 'ChrisTitusTech:main' into main
technicks89 a3029dc
Merge branch 'ChrisTitusTech:main' into main
technicks89 8451cd4
Merge branch 'ChrisTitusTech:main' into main
technicks89 d1f303d
Merge branch 'ChrisTitusTech:main' into main
technicks89 9227b7e
Merge branch 'ChrisTitusTech:main' into main
technicks89 1076001
Merge branch 'ChrisTitusTech:main' into main
technicks89 11272df
Merge branch 'ChrisTitusTech:main' into main
technicks89 1d600e1
Merge branch 'ChrisTitusTech:main' into main
technicks89 4d05f32
Merge branch 'ChrisTitusTech:main' into main
technicks89 34181ae
Merge branch 'ChrisTitusTech:main' into main
technicks89 a01a09a
Merge branch 'ChrisTitusTech:main' into main
technicks89 c547d50
Merge branch 'ChrisTitusTech:main' into main
technicks89 abc57e4
Merge branch 'ChrisTitusTech:main' into main
technicks89 6b08961
Merge branch 'ChrisTitusTech:main' into main
technicks89 ed2dc1c
Merge branch 'ChrisTitusTech:main' into main
technicks89 eab1cc3
Merge branch 'ChrisTitusTech:main' into main
technicks89 74e2ca7
Merge branch 'ChrisTitusTech:main' into main
technicks89 447e994
Merge branch 'ChrisTitusTech:main' into main
technicks89 1ccbfdd
Merge branch 'ChrisTitusTech:main' into main
technicks89 a34b11a
Merge branch 'ChrisTitusTech:main' into main
technicks89 6e1a941
Merge branch 'ChrisTitusTech:main' into main
technicks89 8b67ba3
Merge branch 'ChrisTitusTech:main' into main
technicks89 e9589d3
Merge branch 'ChrisTitusTech:main' into main
technicks89 f4c8e08
Merge branch 'ChrisTitusTech:main' into main
technicks89 3e19a79
Added Shelly install for Arch based linux distros
technicks89 732aa4c
Made Shelly visible only on Arch Linux
technicks89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,51 @@ | ||
| #!/bin/sh -e | ||
|
|
||
| . ../common-script.sh | ||
|
|
||
| installShelly() { | ||
| printf "%b\n" "${YELLOW}Installing Shelly...${RC}" | ||
| if ! command_exists shelly; then | ||
| case "$PACKAGER" in | ||
| pacman) | ||
| "$AUR_HELPER" -S --needed --noconfirm --cleanafter shelly | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported Packager Manager: $PACKAGER${RC}" | ||
| ;; | ||
| esac | ||
| else | ||
| printf "%b\n" "${GREEN}Shelly is already installed.${RC}" | ||
| fi | ||
| } | ||
|
|
||
| uninstallShelly() { | ||
| printf "%b\n" "${YELLOW}Uninstalling Shelly...${RC}" | ||
| if command_exists shelly; then | ||
| case "$PACKAGER" in | ||
| pacman) | ||
| "$AUR_HELPER" -Rns --noconfirm --cleanafter audacity | ||
| ;; | ||
| *) | ||
| printf "%b\n" "${RED}Unsupported Packager Manager: $PACKAGER${RC}" | ||
| ;; | ||
| esac | ||
| else | ||
| printf "%b\n" "${GREEN}Shelly is not installed.${RC}" | ||
| fi | ||
| } | ||
|
|
||
| main() { | ||
| printf "%b\n" "${YELLOW}Do you want to Install or Uninstall Shelly${RC}" | ||
| printf "%b\n" "1. ${YELLOW}Install${RC}" | ||
| printf "%b\n" "2. ${YELLOW}Uninstall${RC}" | ||
| printf "%b" "Enter your choice [1-2]: " | ||
| read -r CHOICE | ||
| case "$CHOICE" in | ||
| 1) installShelly ;; | ||
| 2) uninstallShelly ;; | ||
| *) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;; | ||
| esac | ||
| } | ||
|
|
||
| checkEnv | ||
| main |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.