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

Commit 9b1a9b4

Browse files
author
Alex Paliarush
committed
Add Magento Upgrade Support #101
1 parent 79dcafb commit 9b1a9b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/host/m_switch_to_ee.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ fi
6767
bash "${vagrant_dir}/scripts/host/m_clear_cache.sh" 2> >(logError)
6868
bash "${vagrant_dir}/scripts/host/m_composer.sh" install 2> >(logError)
6969

70-
cd ${magento_ce_dir} && git checkout composer.lock 2> >(logError) > >(log)
70+
if [[ "${checkout_source_from}" == "git" ]]; then
71+
cd ${magento_ce_dir} && git checkout composer.lock 2> >(logError) > >(log)
72+
fi
7173

7274
if [[ ${host_os} == "Windows" ]] || [[ $(bash "${vagrant_dir}/scripts/get_config_value.sh" "guest_use_nfs") == 0 ]]; then
7375
read -p "$(warning "[Action Required] Wait while Magento2 code is uploaded in PhpStorm and press any key to continue...")" -n1 -s

0 commit comments

Comments
 (0)