Skip to content

Commit 63770da

Browse files
committed
Merge pull request #37 from paliarush/Minor-Fixes
Minor Fixes
2 parents dc99015 + da40348 commit 63770da

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

scripts/guest/m-clear-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ cd ${MAGENTO_ROOT}/pub && mv static/.htaccess static_htaccess.back && rm -rf sta
1010
#clear integration tests tmp
1111
cd ${MAGENTO_ROOT}/dev/tests/integration && mv tmp/.gitignore tmp_gitignore.back && rm -rf tmp && mkdir tmp && mv tmp_gitignore.back tmp/.gitignore
1212
#clear unit tests tmp
13-
cd ${MAGENTO_ROOT}/dev/tests/unit && rm -rf tmp && mkdir tmp
13+
cd ${MAGENTO_ROOT}/dev/tests/unit && mv tmp/.gitignore tmp_gitignore.back && rm -rf tmp && mkdir tmp && mv tmp_gitignore.back tmp/.gitignore
1414

1515
echo "Magento cache cleared."

scripts/host/composer.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ if [ ! -f ${composer_phar} ]; then
2222
fi
2323

2424
# Configure composer credentials
25+
auth_json_already_exists=0
26+
if [ -f "${current_dir}/auth.json" ]; then
27+
auth_json_already_exists=1
28+
fi
29+
2530
cd ${current_dir}
26-
if [ -f ${composer_auth_json} ]; then
27-
cp ${composer_auth_json} "${PWD}/auth.json"
31+
if [ ! ${auth_json_already_exists} = 1 ] && [ -f ${composer_auth_json} ]; then
32+
cp ${composer_auth_json} "${current_dir}/auth.json"
2833
fi
2934

3035
host_os=$(bash "${vagrant_dir}/scripts/host/get_host_os.sh")
@@ -35,6 +40,6 @@ else
3540
${php_executable} ${composer_phar} --ignore-platform-reqs "$@"
3641
fi
3742

38-
if [ -f "${PWD}/auth.json" ]; then
39-
rm "${PWD}/auth.json"
43+
if [ ! ${auth_json_already_exists} = 1 ] && [ -f "${current_dir}/auth.json" ]; then
44+
rm "${current_dir}/auth.json"
4045
fi

scripts/host/get_host_os.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
66
echo "Linux"
77
elif [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
88
echo "Windows"
9+
elif [ "$(expr substr $(uname -s) 1 6)" == "CYGWIN" ]; then
10+
echo "Windows"
911
else
1012
echo "Unknown host OS"
1113
exit 255

0 commit comments

Comments
 (0)