Skip to content

Commit 8bdef80

Browse files
committed
wip
1 parent 12a8b6d commit 8bdef80

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Diff for: bulk-git.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,20 @@ done
2626
echo
2727

2828
PS3="Please enter your choice: "
29-
options2=("Pull" "Push")
29+
options2=("Diff" "Pull" "Push")
3030
select opt2 in "${options2[@]}"
3131
do
3232
case $opt2 in
33+
"Diff")
34+
echo "Do git diff"
35+
break
36+
;;
3337
"Pull")
34-
echo "Confirm files individually"
38+
echo "Do git pull"
3539
break
3640
;;
3741
"Push")
38-
echo "Confirm all files"
42+
echo "Do git push"
3943
break
4044
;;
4145
*) echo "invalid option $opt2";;
@@ -71,7 +75,9 @@ do
7175
echo "Running for... ${package}"
7276
cd $packagePath
7377

74-
if [ "$opt2" == "Push" ]; then
78+
if [ "$opt2" == "Diff" ]; then
79+
echo `git diff`
80+
elif [ "$opt2" == "Push" ]; then
7581
echo `git add .`
7682
echo `git commit -m "update"`
7783
if [ "$package" == "cookbook" ]; then

0 commit comments

Comments
 (0)