Simplify setup

This commit is contained in:
Mentor
2022-09-06 15:37:49 +02:00
parent 4e726beee5
commit 6b450896f1
2 changed files with 7 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ After running `battery charging on` you will see it change to this:
One-line installation:
```bash
curl https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | sudo bash
curl https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | bash
````
This will:

View File

@@ -1,5 +1,11 @@
#!/bin/bash
# User welcome message
echo -e '\n👋 Welcome, this is the setup script for the battery CLI tool.'
echo -e "Note: this sccript will ask for your password once or multiple times. This is needed install battery to your system."
echo -e "\nPress any key to continue\n"
read
# Get smc source and build it
tempfolder=~/.battery-tmp
binfolder=/usr/local/bin