Skip to content

Commit 00e9213

Browse files
committed
standardize apt-get
1 parent 0c812e9 commit 00e9213

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

root/etc/cont-init.d/95-apt-get

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
apt-get update

root/etc/cont-init.d/98-zsh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
# Install ZSH
44
echo "**** Installing zsh ****"
5-
apt-get update && apt-get install -y \
6-
zsh
5+
apt-get install -y \
6+
zsh
77

88
# Install oh-my-zsh if not installed already
99
if [ -d /config/.oh-my-zsh ]; then
10-
echo "**** Oh My Zsh is already installed. You can update it via \"omz update\" in terminal. ****"
10+
echo "**** Oh My Zsh is already installed. You can update it via \"omz update\" in terminal. ****"
1111
elif [ -d /.oh-my-zsh ]; then
12-
echo "**** Installing Oh My Zsh. You can update it via \"omz update\" in terminal. ****"
13-
mv /.oh-my-zsh /config/.oh-my-zsh
14-
cp /config/.oh-my-zsh/templates/zshrc.zsh-template /config/.zshrc
12+
echo "**** Installing Oh My Zsh. You can update it via \"omz update\" in terminal. ****"
13+
mv /.oh-my-zsh /config/.oh-my-zsh
14+
cp /config/.oh-my-zsh/templates/zshrc.zsh-template /config/.zshrc
1515
else
16-
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
16+
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
1717
fi
1818

1919
chown -R abc:abc \
20-
/config/.oh-my-zsh \
21-
/config/.zshrc
20+
/config/.oh-my-zsh \
21+
/config/.zshrc

0 commit comments

Comments
 (0)