Fixed sudo/root bug

This commit is contained in:
Christoffer Martinsson 2024-10-14 10:58:05 +02:00
parent 189f548123
commit 0121039cb6

View File

@ -1,8 +1,5 @@
#!/bin/bash
# Update wrapper for code_server update script
if [ $EUID != 0 ]; then
sudo "$0" "$@"
fi
set -e
if [ ! -d ~/code_server ]; then
cd ~ &&