forked from karosLi/KKJSBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.sh
More file actions
executable file
·42 lines (33 loc) · 814 Bytes
/
upload.sh
File metadata and controls
executable file
·42 lines (33 loc) · 814 Bytes
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
42
#!/bin/sh
################# Get Parameters ############################
checkInMessage=""
function usage()
{
echo "Simply upload component to a repo"
echo ""
echo "Options for upload:"
echo "-m, --message STRING REQUIRED The check in message."
}
# $OPTARG to get arg value
# $OPTIND to get index
while getopts "m:" option
do
case "$option" in
m)
checkInMessage=$OPTARG
;;
message)
checkInMessage=$OPTARG
;;
\?)
usage
exit 1;;
esac
done
shift "$((OPTIND-1))" # Shift off the options and optional --. For safety.
################# End Get Parameters ############################
if [[ ${checkInMessage} = "" ]]; then
usage
exit
fi
./uploadRepo.sh -f KKJSBridge.podspec -m ${checkInMessage}