mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
20 lines
482 B
Bash
Executable File
20 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2023 Gitpod GmbH. All rights reserved.
|
|
# Licensed under the GNU Affero General Public License (AGPL).
|
|
# See License.AGPL.txt in the project root for license information.
|
|
|
|
set -Eeuo pipefail
|
|
|
|
DIR="$(dirname "$(realpath "$0")")"
|
|
COMPONENT="$(basename "$DIR")"
|
|
cd "$DIR"
|
|
|
|
# build
|
|
go build .
|
|
echo "$COMPONENT built"
|
|
|
|
sudo rm -rf "/ide/$COMPONENT" && true
|
|
sudo mv ./"$COMPONENT" /ide
|
|
sudo cp supervisor-ide-config.json /ide
|
|
echo "$COMPONENT in /ide replaced"
|