From 8b105eb79324632687c2fd514c997add25fb65c2 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 5 Jun 2023 08:56:22 +0200 Subject: [PATCH] Updated update script --- config/nvim/lua/user/plugins/core.lua | 2 +- update.sh | 4 ++-- update_wrapper.sh | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 update_wrapper.sh diff --git a/config/nvim/lua/user/plugins/core.lua b/config/nvim/lua/user/plugins/core.lua index 6ec036c..5231ce5 100644 --- a/config/nvim/lua/user/plugins/core.lua +++ b/config/nvim/lua/user/plugins/core.lua @@ -15,7 +15,7 @@ return { " -- -------------------- ------ ------ --------- ------- -- --", " --█████--------------------█████--------█████--------█████---------------------------------------------", " -- -------------------- -------- -------- ---------------------------------------------", - " --██████--------------██---█████---------------------█████-------------- (N)vim coding IDE ------------", + " --██████--------------██---█████---------------------█████------------- (Neo)vim coding IDE -----------", " --█████████████████████ ---█████---------------------█████---------------------------------------------", " ---███████████████████ ----█████---------------------█████---------------------------------------------", " --- ----- --------------------- ---------------------------------------------", diff --git a/update.sh b/update.sh index 986ab0a..a8578e5 100755 --- a/update.sh +++ b/update.sh @@ -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 && diff --git a/update_wrapper.sh b/update_wrapper.sh new file mode 100644 index 0000000..8c942ff --- /dev/null +++ b/update_wrapper.sh @@ -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