12 lines
195 B
Bash
Executable File
12 lines
195 B
Bash
Executable File
#!/bin/bash
|
|
# Update wrapper for code_server update script
|
|
if [ $EUID != 0 ]; then
|
|
sudo "$0" "$@"
|
|
fi
|
|
|
|
if [ -d ~/code_server ]; then
|
|
cd ~/code_server &&
|
|
git pull &&
|
|
./update.sh
|
|
fi
|