-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathwait-for-prebuild.sh
More file actions
executable file
·42 lines (31 loc) · 970 Bytes
/
wait-for-prebuild.sh
File metadata and controls
executable file
·42 lines (31 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sleep 2
if [ ! -f prebuild-is-started.txt ]
then
echo "Prebuild force start..."
./prebuild.sh
echo "Prebuild is ready."
exit
fi
if [ ! -f prebuild-is-ready.txt ]
then
echo "==================================================================================================="
echo ""
echo "Looks like prebuild is not ready yet or GitPod was unable to pull prebuild from the cloud."
echo "In this case, be patient and wait until the prebuild is completed in another terminal just for you."
echo ""
echo "If you don't want to wait so long each time on GitPod's instance startup,"
echo "please setup your own prebuild for dev repository,"
echo "https://youtu.be/AfqNn9QQP3s video guide may help."
echo ""
echo "==================================================================================================="
echo ""
echo "Waiting for prebuild"
until [ -f prebuild-is-ready.txt ]
do
sleep 10
printf "▇"
done
echo ""
echo "Prebuild is ready."
exit
fi