Fixed sudo/root bug
This commit is contained in:
parent
189f548123
commit
0121039cb6
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Update wrapper for code_server update script
|
set -e
|
||||||
if [ $EUID != 0 ]; then
|
|
||||||
sudo "$0" "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d ~/code_server ]; then
|
if [ ! -d ~/code_server ]; then
|
||||||
cd ~ &&
|
cd ~ &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user