From 763e4888beae52ef9197d07a4b33bb93123c0ebf Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 27 2011 03:46:05 +0000 Subject: Update locale_getArguments.sh. --- diff --git a/Scripts/Functions/Locale/locale_getArguments.sh b/Scripts/Functions/Locale/locale_getArguments.sh index 332d5ec..3103692 100644 --- a/Scripts/Functions/Locale/locale_getArguments.sh +++ b/Scripts/Functions/Locale/locale_getArguments.sh @@ -79,7 +79,17 @@ function locale_getArguments { shift 1 ;; - * ) + -- ) + # 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