-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from SpamixOfficial/dev
Merging dev into main, v0.5 time!!!!
- Loading branch information
Showing
13 changed files
with
1,012 additions
and
66 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
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
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,25 @@ | ||
#!/usr/bin/bash | ||
set -e | ||
|
||
if [[ "$EUID" != 0 ]]; then | ||
echo "Sudo was not enabled." | ||
|
||
sudo -k | ||
if sudo true; then | ||
echo "Correct password, running installation." | ||
else | ||
echo "Wrong Password, exiting." | ||
exit 1 | ||
fi | ||
fi | ||
pkgname="openclick" | ||
|
||
python install.py || python3 install.py || echo 'Python is not installed, exiting...' | ||
|
||
sudo install -Dm755 linux/cli.py /usr/bin/openclick | ||
sudo install -Dm444 LICENSE "/usr/share/licenses/$pkgname/LICENSE" | ||
sudo install -Dm444 README.md "/usr/share/doc/$pkgname/README.md" | ||
sudo install -Dm666 settings.json "/etc/$pkgname/settings.json" | ||
|
||
echo "Install Success!" | ||
exit 0 |
Oops, something went wrong.