/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packaging/binary_name.sh
22 строки
575 B
Joshua Blum
fix conditionals in build scripts (#25360)
20 дек 2022, 18:53
Не верифицирован
20 дек 2022, 18:53
b9905a5
Код
Авторство
О чём код?
#! /usr/bin/env bash # Prints out the binary name ("keybase", "kbstage", or "kbdev") that # corresponds to the current build mode. This script helps us avoid duplicating # the same switch statement in all of our packaging scripts. set -e -u -o pipefail here="$(dirname "$BASH_SOURCE")" mode="$("$here/build_mode.sh" "$@")" if [ "$mode" = "production" ] || [ "$mode" = "prerelease" ] ; then echo keybase elif [ "$mode" = "staging" ] ; then echo kbstage elif [ "$mode" = "devel" ] ; then echo kbdev else echo ERROR could not determine package name >&2 exit 1 fi