Skip to content

Commit 37838d6

Browse files
committed
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
1 parent 5662ddd commit 37838d6

File tree

1 file changed

+8
-5
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install

1 file changed

+8
-5
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,17 @@ else
4444
fi
4545

4646
if [ -d ~/.bat-extras ]; then
47-
echo 'Bat-extras already installed, skipping'
47+
echo 'Bat-extras already cloned, skipping'
4848
else
49-
echo 'Installing bat-extras'
49+
echo 'Cloning bat-extras repo'
5050
git clone https://github.com/eth-p/bat-extras.git ~/.bat-extras
51-
cd ~/.bat-extras/src
52-
chmod +x ~/.bat-extras/src/*.sh
53-
ln -s ~/.bat-extras/src/*.sh /usr/local/bin
5451
fi
5552

53+
echo 'Installing bat-extras'
54+
cd ~/.bat-extras/src
55+
chmod +x ~/.bat-extras/src/*.sh
56+
ln -s ~/.bat-extras/src/*.sh /usr/local/bin
57+
58+
echo 'Setting permissions for bat-extras'
5659
lsiown -R abc:abc \
5760
/config/.bat-extras

0 commit comments

Comments
 (0)