Updated update script
This commit is contained in:
parent
c7f91d03a0
commit
8b105eb793
@ -15,7 +15,7 @@ return {
|
|||||||
" -- -------------------- ------ ------ --------- ------- -- --",
|
" -- -------------------- ------ ------ --------- ------- -- --",
|
||||||
" --█████--------------------█████--------█████--------█████---------------------------------------------",
|
" --█████--------------------█████--------█████--------█████---------------------------------------------",
|
||||||
" -- -------------------- -------- -------- ---------------------------------------------",
|
" -- -------------------- -------- -------- ---------------------------------------------",
|
||||||
" --██████--------------██---█████---------------------█████-------------- (N)vim coding IDE ------------",
|
" --██████--------------██---█████---------------------█████------------- (Neo)vim coding IDE -----------",
|
||||||
" --█████████████████████ ---█████---------------------█████---------------------------------------------",
|
" --█████████████████████ ---█████---------------------█████---------------------------------------------",
|
||||||
" ---███████████████████ ----█████---------------------█████---------------------------------------------",
|
" ---███████████████████ ----█████---------------------█████---------------------------------------------",
|
||||||
" --- ----- --------------------- ---------------------------------------------",
|
" --- ----- --------------------- ---------------------------------------------",
|
||||||
|
|||||||
@ -128,8 +128,8 @@ ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml &&
|
|||||||
ln -sf ~/code_server/luacheckrc ~/.luacheckrc &&
|
ln -sf ~/code_server/luacheckrc ~/.luacheckrc &&
|
||||||
|
|
||||||
# Symlink update script
|
# 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
|
# Restore default .bashrc
|
||||||
sudo /bin/cp /etc/skel/.bashrc ~/.bashrc &&
|
sudo /bin/cp /etc/skel/.bashrc ~/.bashrc &&
|
||||||
|
|
||||||
|
|||||||
7
update_wrapper.sh
Normal file
7
update_wrapper.sh
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user