Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
migration
Commits
4a0db2b7
Commit
4a0db2b7
authored
Aug 03, 2018
by
Andrew Newdigate
Browse files
More symlink fixes
parent
459d418d
Pipeline
#88487
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bin/workflow-script-commons.sh
View file @
4a0db2b7
...
...
@@ -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
/source_vars_template.sh |cut
-d
=
-f1
|
while
read
-r
i
;
do
grep
-Eho
'(\w+)="__REQUIRED__"'
"
${
SOURCE_VARS_DIR
}
/source_vars_template.sh
"
|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
}
"
fi
...
...
@@ -85,6 +85,10 @@ function ensure_valid() {
esac
}
function
log_command
()
{
(
set
-x
;
"
$@
"
)
}
function
header
()
{
local
full_path
full_path
=
$(
gnu_readlink
-f
"
${
BASH_SOURCE
[2]
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment