Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
e50c4112
Commit
e50c4112
authored
Nov 11, 2011
by
Nikos Skalkotos
Browse files
Make exclude task vars comply to property format
The should look like this: SNF_IMAGE_PROPERTY_<TASK_NAME>_TASK
parent
7a72942e
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
e50c4112
...
...
@@ -164,7 +164,7 @@ check_if_excluded() {
test
"
$PROGNAME
"
=
"snf-image-helper"
&&
return
0
eval local
do_exclude
=
\$
SNF_IMAGE_EXCLUDE_
${
PROGNAME
:2
}
_TASK
eval local
do_exclude
=
\$
SNF_IMAGE_
PROPERTY_
EXCLUDE_
${
PROGNAME
:2
}
_TASK
if
[
-n
"
$do_exclude
"
]
;
then
warn
"Task
$PROGNAME
was excluded and will not run."
exit
0
...
...
snf-image-helper/snf-image-helper.in
View file @
e50c4112
...
...
@@ -88,7 +88,7 @@ fi
# in case it is left mounted...
trap
'{ umount "$target"; }'
ERR
if
[
-z
"
$SNF_IMAGE_EXCLUDE_ALL_TASKS
"
]
;
then
if
[
-z
"
$SNF_IMAGE_
PROPERTY_
EXCLUDE_ALL_TASKS
"
]
;
then
# Redirect standard error to standard output,
# prepend a timestamp before each line of output.
echo
"Execute all snf-image tasks...."
...
...
Write
Preview
Markdown
is supported
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