Updated update script

This commit is contained in:
Christoffer Martinsson 2023-06-05 08:56:22 +02:00
parent c7f91d03a0
commit 8b105eb793
3 changed files with 10 additions and 3 deletions

View File

@ -15,7 +15,7 @@ return {
" -- -------------------- ------ ------ --------- ------- -- --",
" --█████--------------------█████--------█████--------█████---------------------------------------------",
" -- -------------------- -------- -------- ---------------------------------------------",
" --██████--------------██---█████---------------------█████-------------- (N)vim coding IDE ------------",
" --██████--------------██---█████---------------------█████------------- (Neo)vim coding IDE -----------",
" --█████████████████████ ---█████---------------------█████---------------------------------------------",
" ---███████████████████ ----█████---------------------█████---------------------------------------------",
" --- ----- --------------------- ---------------------------------------------",

View File

@ -128,8 +128,8 @@ ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml &&
ln -sf ~/code_server/luacheckrc ~/.luacheckrc &&
# Symlink update script
ln -sf ~/code_server/update.sh ~/.local/bin/update &&
ln -sf ~/code_server/update_wrapper.sh ~/.local/bin/update &&
# Restore default .bashrc
sudo /bin/cp /etc/skel/.bashrc ~/.bashrc &&

7
update_wrapper.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Update wrapper for code_server update script
if [ -d ~/code_server ]; then
cd ~/code_server &&
git pull &&
./update.sh
fi