Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-cli/rebuild.sh
2492 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 "/.supervisor/$COMPONENT" && true
17
sudo mv ./"$COMPONENT" /.supervisor
18
echo "$COMPONENT in /.supervisor replaced"
19
20