Commit 4a0db2b7 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

More symlink fixes

parent 459d418d
Pipeline #88487 passed with stage
in 13 seconds
......@@ -44,7 +44,7 @@ function gnu_readlink() {
function ensure_valid() {
source_vars_file=$(gnu_readlink -f "${SOURCE_VARS_DIR}/source_vars")
grep -Eho '(\w+)="__REQUIRED__"' ./bin/ |cut -d= -f1 | while read -r i; do
grep -Eho '(\w+)="__REQUIRED__"' "${SOURCE_VARS_DIR}/" |cut -d= -f1 | while read -r i; do
if [[ ${!i:=__REQUIRED__} = "__REQUIRED__" ]]; then
die "Variable ${i} has not been configured. You may need to update ${source_vars_file}"
......@@ -85,6 +85,10 @@ function ensure_valid() {
function log_command() {
(set -x; "$@")
function header() {
local full_path
full_path=$(gnu_readlink -f "${BASH_SOURCE[2]}")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment