linuxbox/update_wrapper.sh

14 lines
211 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -d ~/code_server ]; then
cd ~ &&
git clone https://git.cmtec.se/cm/code_server.git
fi
if [ -d ~/code_server ]; then
cd ~/code_server &&
git pull &&
./update.sh
fi