Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ide/code/codehelper/rebuild.sh
2500 views
1
#!/bin/bash
2
# Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
# Licensed under the GNU Affero General Public License (AGPL).
4
# See License.AGPL.txt in the project root for license information.
5
6
set -Eeuo pipefail
7
8
DIR="$(dirname "$(realpath "$0")")"
9
COMPONENT="$(basename "$DIR")"
10
cd "$DIR"
11
12
# build
13
go build .
14
echo "$COMPONENT built"
15
16
sudo rm -rf "/ide/$COMPONENT" && true
17
sudo mv ./"$COMPONENT" /ide
18
sudo cp supervisor-ide-config.json /ide
19
echo "$COMPONENT in /ide replaced"
20
21