Skip to content
Snippets Groups Projects
Select Git revision
  • aa9089f52fd5ae0029bb9919d765d68fb9c4711a
  • master default protected
  • nrb/allow-wan-status
  • nrb/ffs-prometheus-node-exporter
  • nrbffs/ci-cache-only-dl
  • nrbffs/test
  • v1.6-alpha02
7 results

get-gluon-branch.sh

Blame
  • Forked from firmware / FFS Gluon site
    Source project has a limited visibility.
    get-gluon-branch.sh 652 B
    #!/bin/bash
    
    set -eu
    set -o pipefail
    
    # autoupdater
    # ====
    #
    # This script prints the name of the autoupdater branch depending on the build
    # configuration. Its output is suitable for use as the GLUON_BRANCH build
    # variable of gluon.
    #
    # The idea is to take whatever comes in the GLUON_BRANCH build variable,
    # except when this value is not one of the well-known branch names; then fall
    # back to 'nightly'.
    
    default_gluon_branch_name="nightly"
    
    case "${GLUON_BRANCH:-}" in
        "nightly" | "beta" | "stable")
            gluon_branch="$GLUON_BRANCH"
            ;;
        *):
            gluon_branch="$default_gluon_branch_name"
            ;;
    esac
    
    echo $gluon_branch