accept option to specify working directory

This commit is contained in:
Václav Uruba 2023-09-09 19:11:33 +02:00
parent f9b78ce765
commit 8e65255678
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

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
}