-
Notifications
You must be signed in to change notification settings - Fork 0
/
c.sh
executable file
·54 lines (48 loc) · 1.11 KB
/
c.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
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#
# Commit Central Script for LH Kernel
#
# Copyright (C) 2020 Luan Halaiko and LuizPauloDamaceno ([email protected]) ([email protected])
#
# Private release DO NOT DISTRIBUTE, all files including this one are made by Luan Halaiko to compile
# the builds of LH Kernel in his workspace, it will not come along on any source by any means.
#Colors
black='\033[0;30m'
red='\033[0;31m'
green='\033[0;32m'
brown='\033[0;33m'
blue='\033[0;34m'
purple='\033[1;35m'
cyan='\033[0;36m'
nc='\033[0m'
#LH Logo
echo -e "$blue############################ LH COMMIT CENTRAL #############################$nc"
#Main script
while true; do
echo -e "\n$green[1]Cherry-pick"
echo -e "[2]Revert"
echo -e "[3]Quit$nc"
echo -ne "\n$brown(i)Enter a choice[1-5]:$nc "
read choice
if [ "$choice" == "1" ]; then
while true
do
echo "Cherry-pick: "
read REVERT
git cherry-pick $REVERT
echo "DONE"
done
fi
if [ "$choice" == "2" ]; then
while true
do
echo "Revert: "
read REVERT
git revert $REVERT
echo "DONE"
done
fi
if [ "$choice" == "3" ]; then
exit 1
fi
done