Extract args processing in deps scripts

Extract the code which process arguments to a function.

This will make it optional, so that the script which just
downloads the official adb binaries does not use arguments.
This commit is contained in:
Romain Vimont
2024-11-22 22:14:05 +01:00
parent efea97a026
commit 1569de761b
5 changed files with 23 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]})
cd "$DEPS_DIR"
. common
process_args "$@"
VERSION=7.1
FILENAME=ffmpeg-$VERSION.tar.xz