Commit 31e02d3a authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'more-symlink-fixes' into 'master'

More symlink fixes

See merge request gitlab-com/migration!175
parents 459d418d 4a0db2b7
Pipeline #88489 passed with stage
in 23 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]}")
Supports Markdown
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