From e070cb3a99dc312c194111695ad95d35449a4379 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 19 2012 17:19:27 +0000 Subject: Update `Functions/Prepare/prepare_getOptions.sh' file. --- diff --git a/Scripts/Bash/Functions/Prepare/prepare_getOptions.sh b/Scripts/Bash/Functions/Prepare/prepare_getOptions.sh index e3fc640..9b807b9 100755 --- a/Scripts/Bash/Functions/Prepare/prepare_getOptions.sh +++ b/Scripts/Bash/Functions/Prepare/prepare_getOptions.sh @@ -31,9 +31,10 @@ function prepare_getOptions { local ARGSS="" # Define long options we want to support. - local ARGSL="quiet,answer-yes,packages,locales,links,images,manuals,set-environment,see-environment" + local + ARGSL="quiet,answer-yes,packages,locales,links,images,manuals,set-environment,see-environment,commit-changes" - # Parse arguments using getopt(1) command parser. + # Redefine ARGUMENTS using getopt(1) command parser. cli_parseArguments # Reset positional parameters using output from (getopt) argument @@ -89,6 +90,11 @@ function prepare_getOptions { shift 1 ;; + --commit-changes ) + FLAG_COMMIT_CHANGES="true" + shift 1 + ;; + * ) break esac