From 92df38fa19b4070bf743bf1f378c898c6b13bb75 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 27 2011 04:17:21 +0000 Subject: Update render_getArguments.sh. --- diff --git a/Scripts/Functions/Render/render_getArguments.sh b/Scripts/Functions/Render/render_getArguments.sh index 37ad20b..6c2108c 100644 --- a/Scripts/Functions/Render/render_getArguments.sh +++ b/Scripts/Functions/Render/render_getArguments.sh @@ -107,8 +107,19 @@ function render_getArguments { shift 2 ;; - * ) + -- ) + # Remove the `--' argument from the list of arguments + # in order for processing non-option arguments + # correctly. At this point all option arguments have + # been processed already but the `--' argument still + # remains to mark ending of option arguments and + # begining of non-option arguments. The `--' argument + # needs to be removed here in order to avoid + # centos-art.sh script to process it as a path inside + # the repository, which obviously is not. + shift 1 break + ;; esac done