We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12a8b6d commit 8bdef80Copy full SHA for 8bdef80
bulk-git.sh
@@ -26,16 +26,20 @@ done
26
echo
27
28
PS3="Please enter your choice: "
29
-options2=("Pull" "Push")
+options2=("Diff" "Pull" "Push")
30
select opt2 in "${options2[@]}"
31
do
32
case $opt2 in
33
+ "Diff")
34
+ echo "Do git diff"
35
+ break
36
+ ;;
37
"Pull")
- echo "Confirm files individually"
38
+ echo "Do git pull"
39
break
40
;;
41
"Push")
- echo "Confirm all files"
42
+ echo "Do git push"
43
44
45
*) echo "invalid option $opt2";;
@@ -71,7 +75,9 @@ do
71
75
echo "Running for... ${package}"
72
76
cd $packagePath
73
77
74
- if [ "$opt2" == "Push" ]; then
78
+ if [ "$opt2" == "Diff" ]; then
79
+ echo `git diff`
80
+ elif [ "$opt2" == "Push" ]; then
81
echo `git add .`
82
echo `git commit -m "update"`
83
if [ "$package" == "cookbook" ]; then
0 commit comments