forked from Locietta/xanmod-kernel-WSL2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_tag.sh
executable file
·41 lines (41 loc) · 1.05 KB
/
get_tag.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
IS_VERBOSE="-q"
while [[ $# -gt '0' ]]
do
if [[ "$1" == '-v' ]]
then
IS_VERBOSE="--show-progress -q"
shift
if [[ $# -gt '0' ]]
then
if [[ "$1" == '-v' ]]
then
IS_VERBOSE="--show-progress -v"
shift
fi
fi
else
if [[ "$1" == '--version-code' ]]
then
LIBMEDIA_GRADLE_VERSION_CODE="$2"
shift
shift
else
if [[ "$1" == '-h' || "$1" == '--help' ]]
then
echo "usage:"
echo ""
echo " -h, --help this help text"
echo " -v print file download progress"
echo " -v -v print detailed file download progress"
echo " --version-code specify the version code, eg --version-code 17"
exit 1
else
shift
fi
fi
fi
done
if [[ -z $LIBMEDIA_GRADLE_VERSION_CODE ]]
then
. ./compute_libmedia_version.sh
fi