From 1858f4a4b605fdaa735e413dc16510c8d62c34ff Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 08 2011 14:24:59 +0000 Subject: Update tuneup_getOptions.sh: - When no action value is provided, use the current directory the centos-art.sh script was called from as default action value. --- diff --git a/Scripts/Functions/Tuneup/tuneup_getOptions.sh b/Scripts/Functions/Tuneup/tuneup_getOptions.sh index 964a511..0ba443e 100755 --- a/Scripts/Functions/Tuneup/tuneup_getOptions.sh +++ b/Scripts/Functions/Tuneup/tuneup_getOptions.sh @@ -82,4 +82,11 @@ function tuneup_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 + }