@@ -13,18 +13,20 @@ source "${dbsyncutil}menu.sh"
13
13
14
14
# Make sure we are in a Magento directory
15
15
if [ ! -f " bin/magento" ]; then
16
- printf ' %-1s %-80s %-1s' " ${bg_red}${txt_white} " " " " ${txt_end} "
17
- echo -e " ${bg_red}${txt_white} You are not currently in a Magento directory ${txt_end} "
18
- echo -e " ${bg_red}${txt_white} ${txt_end} "
16
+ printf ' %-1s %-78s %-1s' " ${bg_red}${txt_white} " " " " ${txt_end} "
17
+ echo
18
+ echo -e " ${bg_red}${txt_white} You are not currently in a Magento directory ${txt_end} "
19
+ echo -e " ${bg_red}${txt_white} ${txt_end} "
19
20
exit
20
21
fi
21
22
22
23
# Set global paths and functions
23
24
source " ${dbsyncutil} set_constants.sh"
24
25
25
- echo -e " ${bg_black}${txt_white} ${txt_end} "
26
- echo -e " ${bg_black}${txt_white} Copy over a production database to staging ${txt_end} "
27
- echo -e " ${bg_black}${txt_white} ${txt_end} "
26
+ printf ' %-1s %-78s %-1s' " ${bg_black}${txt_white} " " " " ${txt_end} "
27
+ echo
28
+ echo -e " ${bg_black}${txt_white} Copy over a production database to staging ${txt_end} "
29
+ echo -e " ${bg_black}${txt_white} ${txt_end} "
28
30
29
31
# Check for a local config file
30
32
echo -e " "
@@ -97,6 +99,6 @@ n98-magerun indexer:reindex
97
99
echo
98
100
n98-magerun cache:flush
99
101
100
- echo -e " ${bg_green}${txt_white}${txt_bold} ${txt_end} "
101
- echo -e " ${bg_green}${txt_white}${txt_bold} Database migrated: ${txt_yellow}${new_domain} ${txt_end} "
102
- echo -e " ${bg_green}${txt_white}${txt_bold} ${txt_end} "
102
+ echo -e " ${bg_green}${txt_white}${txt_bold} ${txt_end} "
103
+ printf ' %-2s %-76s %-2s ' " ${bg_green}${txt_white}${txt_bold} " " Database migrated: ${txt_yellow}${new_domain} " " ${txt_end} "
104
+ echo -e " ${bg_green}${txt_white}${txt_bold} ${txt_end} "
0 commit comments