debian-forge-composer/tools/set-env-variables.sh
Ondřej Budai 27693b1949 test: use hyphen in DISTRO_CODE instead of underscore
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-09-24 17:03:53 +02:00

7 lines
190 B
Bash

#!/bin/bash
# don't error on unused ARCH and DISTRO_CODE variables
# shellcheck disable=SC2034
source /etc/os-release
ARCH=$(uname -m)
DISTRO_CODE="${DISTRO_CODE:-${ID}-${VERSION_ID//./}}"