mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 21:03:19 -07:00
Merge pull request #41 from martijndierckx/patch-1
made root check case-insensitive
This commit is contained in:
commit
5484b2c368
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ if [ "${EMAIL}" == "" -o "${PASS}" == "" ] && [ "${PUBLIC}" == "no" ]; then
|
|||
fi
|
||||
|
||||
if [ "${AUTOINSTALL}" == "yes" -o "${AUTOSTART}" == "yes" ]; then
|
||||
id | grep 'uid=0(' 2>&1 >/dev/null
|
||||
id | grep -i 'uid=0(' 2>&1 >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: You need to be root to use autoinstall/autostart option."
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue