From 74bc1921907a0e3fcc2ef83ddecb2bf003229696 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Dec 27 2013 02:05:46 +0000 Subject: Update prepare_setRenderEnvironment.sh file. - Previously, the directory where the search is performed was provided before option arguments. The getopts command expects option arguments first and non-option arguments later. This update rearranges the order of options and non-option arguments passed to tcar_getFilesList function in order for option arguments to be passed first and non-option arguments later. --- diff --git a/tcar-scripts-prepare/prepare_setRenderEnvironment.sh b/tcar-scripts-prepare/prepare_setRenderEnvironment.sh index 6f78bc6..0746f83 100755 --- a/tcar-scripts-prepare/prepare_setRenderEnvironment.sh +++ b/tcar-scripts-prepare/prepare_setRenderEnvironment.sh @@ -102,8 +102,8 @@ function prepare_setRenderEnvironment { # point it is very difficult that DIRECTORY doesn't exist or # be outside the repository directory structure. CONFIGURATION_FILES[++${#CONFIGURATION_FILES[*]}]=$(tcar_getFilesList \ - ${DIRECTORY} -p '.+\.conf$' -t 'f' \ - | xargs egrep ${CONFIGURATION_PATTERN} | cut -d: -f1 | sort | uniq) + -p '.+\.conf$' -t 'f' ${DIRECTORY} \ + | xargs egrep ${CONFIGURATION_PATTERN} | cut -d: -f1 | sort | uniq) done