diff --git a/mige.sh b/mige.sh index 15794e6..6495511 100755 --- a/mige.sh +++ b/mige.sh @@ -18,10 +18,11 @@ check_files () { } read_options() { - while getopts "a" opt; do + while getopts "ad:" opt; do case "${opt}" in a) OPTION_ASSETS=true;; - \?) ;; + d) SOURCEDIR=$OPTARG;; + \?) exit 2;; esac done }