Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit d2a0bd2

Browse files
author
Alex Paliarush
committed
Improved error reporting #112
1 parent 078dd84 commit d2a0bd2

File tree

9 files changed

+18
-9
lines changed

9 files changed

+18
-9
lines changed

init_project.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-bin-magento

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-clear-cache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
warm_up_cache=0
1213
while getopts 'w' flag; do

m-composer

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-reinstall

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-search-engine

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-switch-to-ce

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-switch-to-ee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

m-varnish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")" && vagrant_dir=$PWD
66

77
source "${vagrant_dir}/scripts/output_functions.sh"
88
resetNestingLevel
9-
initLogFile `basename "$0"`
9+
current_script_name=`basename "$0"`
10+
initLogFile ${current_script_name}
1011

1112
debug_vagrant_project="$(bash "${vagrant_dir}/scripts/get_config_value.sh" "debug_vagrant_project")"
1213
if [[ ${debug_vagrant_project} -eq 1 ]]; then

0 commit comments

Comments
 (0)