install.sh: shfmt and shellcheck pass
This commit is contained in:
parent
254e497982
commit
b59f6e8ef9
|
@ -8,7 +8,7 @@ if [ "$SELECTED_USER" = "" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ $CURRENT_UID -ne 0 ]; then
|
||||
if [ "$CURRENT_UID" -ne 0 ]; then
|
||||
echo "Please run using sudo!"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -18,7 +18,7 @@ if [ "$USE_SYMLINK" = "true" ]; then
|
|||
else
|
||||
cp -v 51-android.rules /etc/udev/rules.d/51-android.rules
|
||||
fi
|
||||
chmod a+r /etc/udev/rules.d/51-android.rules
|
||||
chmod a+r /etc/udev/rules.d/51-android.rules
|
||||
if [ "$USE_GROUP" = "false" ]; then
|
||||
mkdir -p /usr/lib/sysusers.d/ && sudo cp android-udev.conf /usr/lib/sysusers.d/
|
||||
systemd-sysusers
|
||||
|
@ -35,4 +35,3 @@ if [ "$USE_SERVICE_CMD" = "true" ]; then
|
|||
else
|
||||
systemctl restart systemd-udevd.service
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue