fix: install.sh: get current user instead of root on the automatic install script (#239)

* Get current user instead of root on the install.sh script

* Added automatic install steps on README.md
This commit is contained in:
Paul Harriet Asiñero 2022-09-16 15:41:34 +08:00 committed by GitHub
parent 9437c08679
commit ac87fda61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,10 @@ adb devices
# You should now see your device
```
### Using the automtic install script
1. Clone this repository
2. Run the `install.sh` as root on your terminal
## To Contribute
1. Fork this repository.

View File

@ -21,7 +21,7 @@ else
groupadd adbusers
fi
usermod -a -G adbusers "$USER"
usermod -a -G adbusers "$(logname)"
udevadm control --reload-rules
if [ "$USE_SERVICE_CMD" = "true" ]; then