accept option to specify working directory

This commit is contained in:
2023-09-09 19:11:33 +02:00
parent f9b78ce765
commit 8e65255678

View File

@@ -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
}