Revision 7ee2a43d

b/snf-image-helper/common.sh
151 151
  fi
152 152
}
153 153

  
154

  
155 154
check_if_excluded() {
156 155

  
157 156
    test "$PROGNAME" = "snf-image-helper" && return 0
158 157

  
159
    eval local do_exclude=\$SNF_IMAGE_PROPERTY_EXCLUDE_${PROGNAME:2}_TASK
160
    if [ -n "$do_exclude" ]; then
158
    local exclude=SNF_IMAGE_PROPERTY_EXCLUDE_TASK_${PROGNAME:2}
159
    if [ -n "${!exclude}" ]; then
161 160
        warn "Task $PROGNAME was excluded and will not run."
162 161
        exit 0
163 162
    fi

Also available in: Unified diff