From 37838d616b5142efdbc29442fc5beeb3e62bfcab Mon Sep 17 00:00:00 2001 From: Some Watson Date: Mon, 27 Oct 2025 11:29:21 +0000 Subject: [PATCH] Symlink bat-extras every time the install step is run Separate the git clone step from the installation step It doesn't need to be cloned every time, but it should be installed every time --- .../s6-rc.d/init-mod-code-server-bat-install/run | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run b/root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run index c9d2274..1655129 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run @@ -44,14 +44,17 @@ else fi if [ -d ~/.bat-extras ]; then - echo 'Bat-extras already installed, skipping' + echo 'Bat-extras already cloned, skipping' else - echo 'Installing bat-extras' + echo 'Cloning bat-extras repo' git clone https://github.com/eth-p/bat-extras.git ~/.bat-extras - cd ~/.bat-extras/src - chmod +x ~/.bat-extras/src/*.sh - ln -s ~/.bat-extras/src/*.sh /usr/local/bin fi +echo 'Installing bat-extras' +cd ~/.bat-extras/src +chmod +x ~/.bat-extras/src/*.sh +ln -s ~/.bat-extras/src/*.sh /usr/local/bin + +echo 'Setting permissions for bat-extras' lsiown -R abc:abc \ /config/.bat-extras