forked from webprogramming260/webprogramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitall.sh
More file actions
executable file
·29 lines (24 loc) · 927 Bytes
/
commitall.sh
File metadata and controls
executable file
·29 lines (24 loc) · 927 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
#!/bin/bash
while getopts m: flag
do
case "${flag}" in
m) msg=${OPTARG};;
esac
done
if [ -z "$msg"]; then
printf "\nMissing required parameter.\n"
printf " syntax: deployall.sh -m <commit message>\n\n"
exit 1
fi
printf "\n-------------------------------\nCommitting repos\n-------------------------------\n"
cd ../website-html && git commit -am "$msg" && git push
cd ../simon-html && git commit -am "$msg" && git push
cd ../simon-css && git commit -am "$msg" && git push
cd ../simon-javascript && git commit -am "$msg" && git push
cd ../simon-fetch && git commit -am "$msg" && git push
cd ../simon-service && git commit -am "$msg" && git push
cd ../simon-db && git commit -am "$msg" && git push
cd ../simon-login && git commit -am "$msg" && git push
cd ../simon-websocket && git commit -am "$msg" && git push
cd ../simon-react && git commit -am "$msg" && git push
echo cd ../webprogramming260