mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
27 lines
633 B
Bash
Executable File
27 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Revert local repos to pre-release state
|
|
echo -e "${BOLD}${COLOR}CodeIgniter4 release revert${NORMAL}"
|
|
echo '---------------------------'
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "You forgot the magic word"
|
|
exit 1
|
|
fi
|
|
if [ $1 != 'please' ]; then
|
|
echo "What do you say?"
|
|
exit 1
|
|
fi
|
|
|
|
. admin/release-config
|
|
|
|
echo -e "${BOLD}Reverting the main repository${NORMAL}"
|
|
git checkout master
|
|
git pull -f ${CI_ORG}/CodeIgniter4 master
|
|
git checkout develop
|
|
git pull -f${CI_ORG}/CodeIgniter4 develop
|
|
|
|
#---------------------------------------------------
|
|
# Phew!
|
|
echo -e "${BOLD}Congratulations - we have aborted liftoff${NORMAL}"
|