Skip to content

Commit 45bf77c

Browse files
committed
This apt-get update is slow -- no need to execute it all the time
1 parent 1ab97b3 commit 45bf77c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/ubuntu/essentials.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Tools you can't live without
2-
apt-get update
3-
apt-get install -y build-essential git vim
4-
5-
# I can't stand emacs
6-
echo 'set -o vi' | sudo tee /etc/profile.d/vishell.sh
1+
if [ ! -e ".provisioned" ]; then
2+
# Tools you can't live without
3+
apt-get update
4+
apt-get install -y build-essential git vim
75

6+
# I can't stand emacs
7+
echo 'set -o vi' | sudo tee /etc/profile.d/vishell.sh
88

9+
touch .provisioned
10+
fi

0 commit comments

Comments
 (0)