From 787e6eed5b790c6ef063e276782878946b8a34b5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 08 2011 14:36:37 +0000 Subject: Update render_getOptions.sh: - When no action value is provided on the command-line, use the directory where the centos-art.sh script was called from as default action value. --- diff --git a/Scripts/Functions/Render/render_getOptions.sh b/Scripts/Functions/Render/render_getOptions.sh index 9cc4f18..ba2abd2 100755 --- a/Scripts/Functions/Render/render_getOptions.sh +++ b/Scripts/Functions/Render/render_getOptions.sh @@ -118,4 +118,11 @@ function render_getOptions { # Redefine ARGUMENTS variable using current positional parameters. cli_parseArgumentsReDef "$@" + # Verify non-option arguments passed to command-line. If there + # isn't any, redefine the ARGUMENTS variable to use the current + # location the functionality was called from. + if [[ $ARGUMENTS == '' ]];then + ARGUMENTS=${PWD} + fi + }